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

com.google.api.services.run.v2.model.GoogleCloudRunV2Volume Maven / Gradle / Ivy

There is a newer version: v2-rev20241213-2.0.0
Show 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.run.v2.model;

/**
 * Volume represents a named volume in a container.
 *
 * 

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 Run Admin 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 GoogleCloudRunV2Volume extends com.google.api.client.json.GenericJson { /** * For Cloud SQL volumes, contains the specific instances that should be mounted. Visit * https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect * Cloud SQL and Cloud Run. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2CloudSqlInstance cloudSqlInstance; /** * Ephemeral storage used as a shared volume. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2EmptyDirVolumeSource emptyDir; /** * Persistent storage backed by a Google Cloud Storage bucket. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2GCSVolumeSource gcs; /** * Required. Volume's name. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * For NFS Voumes, contains the path to the nfs Volume * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2NFSVolumeSource nfs; /** * Secret represents a secret that should populate this volume. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2SecretVolumeSource secret; /** * For Cloud SQL volumes, contains the specific instances that should be mounted. Visit * https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect * Cloud SQL and Cloud Run. * @return value or {@code null} for none */ public GoogleCloudRunV2CloudSqlInstance getCloudSqlInstance() { return cloudSqlInstance; } /** * For Cloud SQL volumes, contains the specific instances that should be mounted. Visit * https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect * Cloud SQL and Cloud Run. * @param cloudSqlInstance cloudSqlInstance or {@code null} for none */ public GoogleCloudRunV2Volume setCloudSqlInstance(GoogleCloudRunV2CloudSqlInstance cloudSqlInstance) { this.cloudSqlInstance = cloudSqlInstance; return this; } /** * Ephemeral storage used as a shared volume. * @return value or {@code null} for none */ public GoogleCloudRunV2EmptyDirVolumeSource getEmptyDir() { return emptyDir; } /** * Ephemeral storage used as a shared volume. * @param emptyDir emptyDir or {@code null} for none */ public GoogleCloudRunV2Volume setEmptyDir(GoogleCloudRunV2EmptyDirVolumeSource emptyDir) { this.emptyDir = emptyDir; return this; } /** * Persistent storage backed by a Google Cloud Storage bucket. * @return value or {@code null} for none */ public GoogleCloudRunV2GCSVolumeSource getGcs() { return gcs; } /** * Persistent storage backed by a Google Cloud Storage bucket. * @param gcs gcs or {@code null} for none */ public GoogleCloudRunV2Volume setGcs(GoogleCloudRunV2GCSVolumeSource gcs) { this.gcs = gcs; return this; } /** * Required. Volume's name. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Required. Volume's name. * @param name name or {@code null} for none */ public GoogleCloudRunV2Volume setName(java.lang.String name) { this.name = name; return this; } /** * For NFS Voumes, contains the path to the nfs Volume * @return value or {@code null} for none */ public GoogleCloudRunV2NFSVolumeSource getNfs() { return nfs; } /** * For NFS Voumes, contains the path to the nfs Volume * @param nfs nfs or {@code null} for none */ public GoogleCloudRunV2Volume setNfs(GoogleCloudRunV2NFSVolumeSource nfs) { this.nfs = nfs; return this; } /** * Secret represents a secret that should populate this volume. * @return value or {@code null} for none */ public GoogleCloudRunV2SecretVolumeSource getSecret() { return secret; } /** * Secret represents a secret that should populate this volume. * @param secret secret or {@code null} for none */ public GoogleCloudRunV2Volume setSecret(GoogleCloudRunV2SecretVolumeSource secret) { this.secret = secret; return this; } @Override public GoogleCloudRunV2Volume set(String fieldName, Object value) { return (GoogleCloudRunV2Volume) super.set(fieldName, value); } @Override public GoogleCloudRunV2Volume clone() { return (GoogleCloudRunV2Volume) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy