|
| 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.developerconnect.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * The ArtifactDeployment resource represents the deployment of the artifact within the |
| 21 | + * InsightsConfig resource. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Developer Connect API. For a detailed explanation |
| 25 | + * see: |
| 26 | + * <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> |
| 27 | + * </p> |
| 28 | + * |
| 29 | + * @author Google, Inc. |
| 30 | + */ |
| 31 | +@SuppressWarnings("javadoc") |
| 32 | +public final class ArtifactDeployment extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us- |
| 36 | + * docker.pkg.dev/my-project/my-repo/image:1.0.0 |
| 37 | + * The value may be {@code null}. |
| 38 | + */ |
| 39 | + @com.google.api.client.util.Key |
| 40 | + private java.lang.String artifactAlias; |
| 41 | + |
| 42 | + /** |
| 43 | + * Output only. The artifact that is deployed. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.String artifactReference; |
| 48 | + |
| 49 | + /** |
| 50 | + * Output only. The summary of container status of the artifact deployment. Format as |
| 51 | + * `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3" |
| 52 | + * The value may be {@code null}. |
| 53 | + */ |
| 54 | + @com.google.api.client.util.Key |
| 55 | + private java.lang.String containerStatusSummary; |
| 56 | + |
| 57 | + /** |
| 58 | + * Output only. The time at which the deployment was deployed. |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private String deployTime; |
| 63 | + |
| 64 | + /** |
| 65 | + * Output only. Unique identifier of `ArtifactDeployment`. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private java.lang.String id; |
| 70 | + |
| 71 | + /** |
| 72 | + * Output only. The source commits at which this artifact was built. Extracted from provenance. |
| 73 | + * The value may be {@code null}. |
| 74 | + */ |
| 75 | + @com.google.api.client.util.Key |
| 76 | + private java.util.List<java.lang.String> sourceCommitUris; |
| 77 | + |
| 78 | + /** |
| 79 | + * Output only. The time at which the deployment was undeployed, all artifacts are considered |
| 80 | + * undeployed once this time is set. |
| 81 | + * The value may be {@code null}. |
| 82 | + */ |
| 83 | + @com.google.api.client.util.Key |
| 84 | + private String undeployTime; |
| 85 | + |
| 86 | + /** |
| 87 | + * Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us- |
| 88 | + * docker.pkg.dev/my-project/my-repo/image:1.0.0 |
| 89 | + * @return value or {@code null} for none |
| 90 | + */ |
| 91 | + public java.lang.String getArtifactAlias() { |
| 92 | + return artifactAlias; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us- |
| 97 | + * docker.pkg.dev/my-project/my-repo/image:1.0.0 |
| 98 | + * @param artifactAlias artifactAlias or {@code null} for none |
| 99 | + */ |
| 100 | + public ArtifactDeployment setArtifactAlias(java.lang.String artifactAlias) { |
| 101 | + this.artifactAlias = artifactAlias; |
| 102 | + return this; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * Output only. The artifact that is deployed. |
| 107 | + * @return value or {@code null} for none |
| 108 | + */ |
| 109 | + public java.lang.String getArtifactReference() { |
| 110 | + return artifactReference; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * Output only. The artifact that is deployed. |
| 115 | + * @param artifactReference artifactReference or {@code null} for none |
| 116 | + */ |
| 117 | + public ArtifactDeployment setArtifactReference(java.lang.String artifactReference) { |
| 118 | + this.artifactReference = artifactReference; |
| 119 | + return this; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Output only. The summary of container status of the artifact deployment. Format as |
| 124 | + * `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3" |
| 125 | + * @return value or {@code null} for none |
| 126 | + */ |
| 127 | + public java.lang.String getContainerStatusSummary() { |
| 128 | + return containerStatusSummary; |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * Output only. The summary of container status of the artifact deployment. Format as |
| 133 | + * `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3" |
| 134 | + * @param containerStatusSummary containerStatusSummary or {@code null} for none |
| 135 | + */ |
| 136 | + public ArtifactDeployment setContainerStatusSummary(java.lang.String containerStatusSummary) { |
| 137 | + this.containerStatusSummary = containerStatusSummary; |
| 138 | + return this; |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * Output only. The time at which the deployment was deployed. |
| 143 | + * @return value or {@code null} for none |
| 144 | + */ |
| 145 | + public String getDeployTime() { |
| 146 | + return deployTime; |
| 147 | + } |
| 148 | + |
| 149 | + /** |
| 150 | + * Output only. The time at which the deployment was deployed. |
| 151 | + * @param deployTime deployTime or {@code null} for none |
| 152 | + */ |
| 153 | + public ArtifactDeployment setDeployTime(String deployTime) { |
| 154 | + this.deployTime = deployTime; |
| 155 | + return this; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * Output only. Unique identifier of `ArtifactDeployment`. |
| 160 | + * @return value or {@code null} for none |
| 161 | + */ |
| 162 | + public java.lang.String getId() { |
| 163 | + return id; |
| 164 | + } |
| 165 | + |
| 166 | + /** |
| 167 | + * Output only. Unique identifier of `ArtifactDeployment`. |
| 168 | + * @param id id or {@code null} for none |
| 169 | + */ |
| 170 | + public ArtifactDeployment setId(java.lang.String id) { |
| 171 | + this.id = id; |
| 172 | + return this; |
| 173 | + } |
| 174 | + |
| 175 | + /** |
| 176 | + * Output only. The source commits at which this artifact was built. Extracted from provenance. |
| 177 | + * @return value or {@code null} for none |
| 178 | + */ |
| 179 | + public java.util.List<java.lang.String> getSourceCommitUris() { |
| 180 | + return sourceCommitUris; |
| 181 | + } |
| 182 | + |
| 183 | + /** |
| 184 | + * Output only. The source commits at which this artifact was built. Extracted from provenance. |
| 185 | + * @param sourceCommitUris sourceCommitUris or {@code null} for none |
| 186 | + */ |
| 187 | + public ArtifactDeployment setSourceCommitUris(java.util.List<java.lang.String> sourceCommitUris) { |
| 188 | + this.sourceCommitUris = sourceCommitUris; |
| 189 | + return this; |
| 190 | + } |
| 191 | + |
| 192 | + /** |
| 193 | + * Output only. The time at which the deployment was undeployed, all artifacts are considered |
| 194 | + * undeployed once this time is set. |
| 195 | + * @return value or {@code null} for none |
| 196 | + */ |
| 197 | + public String getUndeployTime() { |
| 198 | + return undeployTime; |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * Output only. The time at which the deployment was undeployed, all artifacts are considered |
| 203 | + * undeployed once this time is set. |
| 204 | + * @param undeployTime undeployTime or {@code null} for none |
| 205 | + */ |
| 206 | + public ArtifactDeployment setUndeployTime(String undeployTime) { |
| 207 | + this.undeployTime = undeployTime; |
| 208 | + return this; |
| 209 | + } |
| 210 | + |
| 211 | + @Override |
| 212 | + public ArtifactDeployment set(String fieldName, Object value) { |
| 213 | + return (ArtifactDeployment) super.set(fieldName, value); |
| 214 | + } |
| 215 | + |
| 216 | + @Override |
| 217 | + public ArtifactDeployment clone() { |
| 218 | + return (ArtifactDeployment) super.clone(); |
| 219 | + } |
| 220 | + |
| 221 | +} |
0 commit comments