All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.composer.v1.model.CheckUpgradeRequest Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.composer.v1.model;

/**
 * Request to check whether image upgrade will succeed.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Composer API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class CheckUpgradeRequest extends com.google.api.client.json.GenericJson { /** * 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](/composer/docs/concepts/versioning/composer-versions) and [versioning * overview](/composer/docs/concepts/versioning/composer-versioning-overview). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String imageVersion; /** * 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](/composer/docs/concepts/versioning/composer-versions) and [versioning * overview](/composer/docs/concepts/versioning/composer-versioning-overview). * @return value or {@code null} for none */ public java.lang.String getImageVersion() { return imageVersion; } /** * 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](/composer/docs/concepts/versioning/composer-versions) and [versioning * overview](/composer/docs/concepts/versioning/composer-versioning-overview). * @param imageVersion imageVersion or {@code null} for none */ public CheckUpgradeRequest setImageVersion(java.lang.String imageVersion) { this.imageVersion = imageVersion; return this; } @Override public CheckUpgradeRequest set(String fieldName, Object value) { return (CheckUpgradeRequest) super.set(fieldName, value); } @Override public CheckUpgradeRequest clone() { return (CheckUpgradeRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy