com.google.api.services.run.v1.model.Volume Maven / Gradle / Ivy
/*
* 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.v1.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 Volume extends com.google.api.client.json.GenericJson {
/**
* Not supported in Cloud Run.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ConfigMapVolumeSource configMap;
/**
* Volume specified by the Container Storage Interface driver
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CSIVolumeSource csi;
/**
* Ephemeral storage used as a shared volume.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private EmptyDirVolumeSource emptyDir;
/**
* Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private NFSVolumeSource nfs;
/**
* The secret's value will be presented as the content of a file whose name is defined in the item
* path. If no items are defined, the name of the file is the secretName.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SecretVolumeSource secret;
/**
* Not supported in Cloud Run.
* @return value or {@code null} for none
*/
public ConfigMapVolumeSource getConfigMap() {
return configMap;
}
/**
* Not supported in Cloud Run.
* @param configMap configMap or {@code null} for none
*/
public Volume setConfigMap(ConfigMapVolumeSource configMap) {
this.configMap = configMap;
return this;
}
/**
* Volume specified by the Container Storage Interface driver
* @return value or {@code null} for none
*/
public CSIVolumeSource getCsi() {
return csi;
}
/**
* Volume specified by the Container Storage Interface driver
* @param csi csi or {@code null} for none
*/
public Volume setCsi(CSIVolumeSource csi) {
this.csi = csi;
return this;
}
/**
* Ephemeral storage used as a shared volume.
* @return value or {@code null} for none
*/
public EmptyDirVolumeSource getEmptyDir() {
return emptyDir;
}
/**
* Ephemeral storage used as a shared volume.
* @param emptyDir emptyDir or {@code null} for none
*/
public Volume setEmptyDir(EmptyDirVolumeSource emptyDir) {
this.emptyDir = emptyDir;
return this;
}
/**
* Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved.
* @param name name or {@code null} for none
*/
public Volume setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* @return value or {@code null} for none
*/
public NFSVolumeSource getNfs() {
return nfs;
}
/**
* @param nfs nfs or {@code null} for none
*/
public Volume setNfs(NFSVolumeSource nfs) {
this.nfs = nfs;
return this;
}
/**
* The secret's value will be presented as the content of a file whose name is defined in the item
* path. If no items are defined, the name of the file is the secretName.
* @return value or {@code null} for none
*/
public SecretVolumeSource getSecret() {
return secret;
}
/**
* The secret's value will be presented as the content of a file whose name is defined in the item
* path. If no items are defined, the name of the file is the secretName.
* @param secret secret or {@code null} for none
*/
public Volume setSecret(SecretVolumeSource secret) {
this.secret = secret;
return this;
}
@Override
public Volume set(String fieldName, Object value) {
return (Volume) super.set(fieldName, value);
}
@Override
public Volume clone() {
return (Volume) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy