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

com.google.api.services.run.v1.model.VolumeMount 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.v1.model;

/**
 * VolumeMount describes a mounting of a Volume within 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 VolumeMount extends com.google.api.client.json.GenericJson { /** * Required. Path within the container at which the volume should be mounted. Must not contain * ':'. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mountPath; /** * Required. The name of the volume. There must be a corresponding Volume with the same name. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Sets the mount to be read-only or read-write. Not used by Cloud Run. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean readOnly; /** * Path within the volume from which the container's volume should be mounted. Defaults to "" * (volume's root). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String subPath; /** * Required. Path within the container at which the volume should be mounted. Must not contain * ':'. * @return value or {@code null} for none */ public java.lang.String getMountPath() { return mountPath; } /** * Required. Path within the container at which the volume should be mounted. Must not contain * ':'. * @param mountPath mountPath or {@code null} for none */ public VolumeMount setMountPath(java.lang.String mountPath) { this.mountPath = mountPath; return this; } /** * Required. The name of the volume. There must be a corresponding Volume with the same name. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Required. The name of the volume. There must be a corresponding Volume with the same name. * @param name name or {@code null} for none */ public VolumeMount setName(java.lang.String name) { this.name = name; return this; } /** * Sets the mount to be read-only or read-write. Not used by Cloud Run. * @return value or {@code null} for none */ public java.lang.Boolean getReadOnly() { return readOnly; } /** * Sets the mount to be read-only or read-write. Not used by Cloud Run. * @param readOnly readOnly or {@code null} for none */ public VolumeMount setReadOnly(java.lang.Boolean readOnly) { this.readOnly = readOnly; return this; } /** * Path within the volume from which the container's volume should be mounted. Defaults to "" * (volume's root). * @return value or {@code null} for none */ public java.lang.String getSubPath() { return subPath; } /** * Path within the volume from which the container's volume should be mounted. Defaults to "" * (volume's root). * @param subPath subPath or {@code null} for none */ public VolumeMount setSubPath(java.lang.String subPath) { this.subPath = subPath; return this; } @Override public VolumeMount set(String fieldName, Object value) { return (VolumeMount) super.set(fieldName, value); } @Override public VolumeMount clone() { return (VolumeMount) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy