com.google.api.services.run.v1alpha1.model.SecretVolumeSource Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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://code.google.com/p/google-apis-client-generator/
* (build: 2018-10-08 17:45:39 UTC)
* on 2019-11-08 at 00:46:02 UTC
* Modify at your own risk.
*/
package com.google.api.services.run.v1alpha1.model;
/**
* The contents of the target Secret's Data field will be presented in a volume as files using the
* keys in the Data field as the file names.
*
* 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 API. For a detailed explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class SecretVolumeSource extends com.google.api.client.json.GenericJson {
/**
* Mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to
* 0644. Directories within the path are not affected by this setting. This might be in conflict
* with other options that affect the file mode, like fsGroup, and the result can be other mode
* bits set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer defaultMode;
/**
* If unspecified, each key-value pair in the Data field of the referenced Secret will be
* projected into the volume as a file whose name is the key and content is the value. If
* specified, the listed keys will be projected into the specified paths, and unlisted keys will
* not be present. If a key is specified which is not present in the Secret, the volume setup will
* error unless it is marked optional.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List items;
static {
// hack to force ProGuard to consider KeyToPath used, since otherwise it would be stripped out
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
com.google.api.client.util.Data.nullOf(KeyToPath.class);
}
/**
* Specify whether the Secret or its keys must be defined.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean optional;
/**
* Name of the secret in the container's namespace to use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String secretName;
/**
* Mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to
* 0644. Directories within the path are not affected by this setting. This might be in conflict
* with other options that affect the file mode, like fsGroup, and the result can be other mode
* bits set.
* @return value or {@code null} for none
*/
public java.lang.Integer getDefaultMode() {
return defaultMode;
}
/**
* Mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to
* 0644. Directories within the path are not affected by this setting. This might be in conflict
* with other options that affect the file mode, like fsGroup, and the result can be other mode
* bits set.
* @param defaultMode defaultMode or {@code null} for none
*/
public SecretVolumeSource setDefaultMode(java.lang.Integer defaultMode) {
this.defaultMode = defaultMode;
return this;
}
/**
* If unspecified, each key-value pair in the Data field of the referenced Secret will be
* projected into the volume as a file whose name is the key and content is the value. If
* specified, the listed keys will be projected into the specified paths, and unlisted keys will
* not be present. If a key is specified which is not present in the Secret, the volume setup will
* error unless it is marked optional.
* @return value or {@code null} for none
*/
public java.util.List getItems() {
return items;
}
/**
* If unspecified, each key-value pair in the Data field of the referenced Secret will be
* projected into the volume as a file whose name is the key and content is the value. If
* specified, the listed keys will be projected into the specified paths, and unlisted keys will
* not be present. If a key is specified which is not present in the Secret, the volume setup will
* error unless it is marked optional.
* @param items items or {@code null} for none
*/
public SecretVolumeSource setItems(java.util.List items) {
this.items = items;
return this;
}
/**
* Specify whether the Secret or its keys must be defined.
* @return value or {@code null} for none
*/
public java.lang.Boolean getOptional() {
return optional;
}
/**
* Specify whether the Secret or its keys must be defined.
* @param optional optional or {@code null} for none
*/
public SecretVolumeSource setOptional(java.lang.Boolean optional) {
this.optional = optional;
return this;
}
/**
* Name of the secret in the container's namespace to use.
* @return value or {@code null} for none
*/
public java.lang.String getSecretName() {
return secretName;
}
/**
* Name of the secret in the container's namespace to use.
* @param secretName secretName or {@code null} for none
*/
public SecretVolumeSource setSecretName(java.lang.String secretName) {
this.secretName = secretName;
return this;
}
@Override
public SecretVolumeSource set(String fieldName, Object value) {
return (SecretVolumeSource) super.set(fieldName, value);
}
@Override
public SecretVolumeSource clone() {
return (SecretVolumeSource) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy