|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.run.v2.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Build the source using Buildpacks. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleCloudRunV2BuildpacksBuild extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. The base image used to opt into automatic base image updates. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String baseImage; |
| 38 | + |
| 39 | + /** |
| 40 | + * Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. |
| 41 | + * cache_image_uri is optional and omitting it will disable caching. This URL must be stable |
| 42 | + * across builds. It is used to derive a build-specific temporary URL by substituting the tag with |
| 43 | + * the build ID. The build will clean up the temporary image on a best-effort basis. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String cacheImageUri; |
| 48 | + |
| 49 | + /** |
| 50 | + * Optional. Whether or not the application container will be enrolled in automatic base image |
| 51 | + * updates. When true, the application will be built on a scratch base image, so the base layers |
| 52 | + * can be appended at run time. |
| 53 | + * The value may be {@code null}. |
| 54 | + */ |
| 55 | + @com.google.api.client.util.Key |
| 56 | + private java.lang.Boolean enableAutomaticUpdates; |
| 57 | + |
| 58 | + /** |
| 59 | + * Optional. User-provided build-time environment variables. |
| 60 | + * The value may be {@code null}. |
| 61 | + */ |
| 62 | + @com.google.api.client.util.Key |
| 63 | + private java.util.Map<String, java.lang.String> environmentVariables; |
| 64 | + |
| 65 | + /** |
| 66 | + * Optional. Name of the function target if the source is a function source. Required for function |
| 67 | + * builds. |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private java.lang.String functionTarget; |
| 72 | + |
| 73 | + /** |
| 74 | + * The runtime name, e.g. 'go113'. Leave blank for generic builds. |
| 75 | + * The value may be {@code null}. |
| 76 | + */ |
| 77 | + @com.google.api.client.util.Key |
| 78 | + private java.lang.String runtime; |
| 79 | + |
| 80 | + /** |
| 81 | + * Optional. The base image used to opt into automatic base image updates. |
| 82 | + * @return value or {@code null} for none |
| 83 | + */ |
| 84 | + public java.lang.String getBaseImage() { |
| 85 | + return baseImage; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Optional. The base image used to opt into automatic base image updates. |
| 90 | + * @param baseImage baseImage or {@code null} for none |
| 91 | + */ |
| 92 | + public GoogleCloudRunV2BuildpacksBuild setBaseImage(java.lang.String baseImage) { |
| 93 | + this.baseImage = baseImage; |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. |
| 99 | + * cache_image_uri is optional and omitting it will disable caching. This URL must be stable |
| 100 | + * across builds. It is used to derive a build-specific temporary URL by substituting the tag with |
| 101 | + * the build ID. The build will clean up the temporary image on a best-effort basis. |
| 102 | + * @return value or {@code null} for none |
| 103 | + */ |
| 104 | + public java.lang.String getCacheImageUri() { |
| 105 | + return cacheImageUri; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. |
| 110 | + * cache_image_uri is optional and omitting it will disable caching. This URL must be stable |
| 111 | + * across builds. It is used to derive a build-specific temporary URL by substituting the tag with |
| 112 | + * the build ID. The build will clean up the temporary image on a best-effort basis. |
| 113 | + * @param cacheImageUri cacheImageUri or {@code null} for none |
| 114 | + */ |
| 115 | + public GoogleCloudRunV2BuildpacksBuild setCacheImageUri(java.lang.String cacheImageUri) { |
| 116 | + this.cacheImageUri = cacheImageUri; |
| 117 | + return this; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Optional. Whether or not the application container will be enrolled in automatic base image |
| 122 | + * updates. When true, the application will be built on a scratch base image, so the base layers |
| 123 | + * can be appended at run time. |
| 124 | + * @return value or {@code null} for none |
| 125 | + */ |
| 126 | + public java.lang.Boolean getEnableAutomaticUpdates() { |
| 127 | + return enableAutomaticUpdates; |
| 128 | + } |
| 129 | + |
| 130 | + /** |
| 131 | + * Optional. Whether or not the application container will be enrolled in automatic base image |
| 132 | + * updates. When true, the application will be built on a scratch base image, so the base layers |
| 133 | + * can be appended at run time. |
| 134 | + * @param enableAutomaticUpdates enableAutomaticUpdates or {@code null} for none |
| 135 | + */ |
| 136 | + public GoogleCloudRunV2BuildpacksBuild setEnableAutomaticUpdates(java.lang.Boolean enableAutomaticUpdates) { |
| 137 | + this.enableAutomaticUpdates = enableAutomaticUpdates; |
| 138 | + return this; |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * Optional. User-provided build-time environment variables. |
| 143 | + * @return value or {@code null} for none |
| 144 | + */ |
| 145 | + public java.util.Map<String, java.lang.String> getEnvironmentVariables() { |
| 146 | + return environmentVariables; |
| 147 | + } |
| 148 | + |
| 149 | + /** |
| 150 | + * Optional. User-provided build-time environment variables. |
| 151 | + * @param environmentVariables environmentVariables or {@code null} for none |
| 152 | + */ |
| 153 | + public GoogleCloudRunV2BuildpacksBuild setEnvironmentVariables(java.util.Map<String, java.lang.String> environmentVariables) { |
| 154 | + this.environmentVariables = environmentVariables; |
| 155 | + return this; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * Optional. Name of the function target if the source is a function source. Required for function |
| 160 | + * builds. |
| 161 | + * @return value or {@code null} for none |
| 162 | + */ |
| 163 | + public java.lang.String getFunctionTarget() { |
| 164 | + return functionTarget; |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Optional. Name of the function target if the source is a function source. Required for function |
| 169 | + * builds. |
| 170 | + * @param functionTarget functionTarget or {@code null} for none |
| 171 | + */ |
| 172 | + public GoogleCloudRunV2BuildpacksBuild setFunctionTarget(java.lang.String functionTarget) { |
| 173 | + this.functionTarget = functionTarget; |
| 174 | + return this; |
| 175 | + } |
| 176 | + |
| 177 | + /** |
| 178 | + * The runtime name, e.g. 'go113'. Leave blank for generic builds. |
| 179 | + * @return value or {@code null} for none |
| 180 | + */ |
| 181 | + public java.lang.String getRuntime() { |
| 182 | + return runtime; |
| 183 | + } |
| 184 | + |
| 185 | + /** |
| 186 | + * The runtime name, e.g. 'go113'. Leave blank for generic builds. |
| 187 | + * @param runtime runtime or {@code null} for none |
| 188 | + */ |
| 189 | + public GoogleCloudRunV2BuildpacksBuild setRuntime(java.lang.String runtime) { |
| 190 | + this.runtime = runtime; |
| 191 | + return this; |
| 192 | + } |
| 193 | + |
| 194 | + @Override |
| 195 | + public GoogleCloudRunV2BuildpacksBuild set(String fieldName, Object value) { |
| 196 | + return (GoogleCloudRunV2BuildpacksBuild) super.set(fieldName, value); |
| 197 | + } |
| 198 | + |
| 199 | + @Override |
| 200 | + public GoogleCloudRunV2BuildpacksBuild clone() { |
| 201 | + return (GoogleCloudRunV2BuildpacksBuild) super.clone(); |
| 202 | + } |
| 203 | + |
| 204 | +} |
0 commit comments