|
| 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.container.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * UserManagedKeysConfig holds the resource address to Keys which are used for signing certs and |
| 21 | + * token that are used for communication within cluster. |
| 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 Kubernetes Engine 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 UserManagedKeysConfig extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * The Certificate Authority Service caPool to use for the aggregation CA in this cluster. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.String aggregationCa; |
| 40 | + |
| 41 | + /** |
| 42 | + * The Certificate Authority Service caPool to use for the cluster CA in this cluster. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.String clusterCa; |
| 47 | + |
| 48 | + /** |
| 49 | + * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes. |
| 50 | + * The value may be {@code null}. |
| 51 | + */ |
| 52 | + @com.google.api.client.util.Key |
| 53 | + private java.lang.String controlPlaneDiskEncryptionKey; |
| 54 | + |
| 55 | + /** |
| 56 | + * Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this |
| 57 | + * cluster. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.String etcdApiCa; |
| 62 | + |
| 63 | + /** |
| 64 | + * Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this |
| 65 | + * cluster. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private java.lang.String etcdPeerCa; |
| 70 | + |
| 71 | + /** |
| 72 | + * Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups. |
| 73 | + * The value may be {@code null}. |
| 74 | + */ |
| 75 | + @com.google.api.client.util.Key |
| 76 | + private java.lang.String gkeopsEtcdBackupEncryptionKey; |
| 77 | + |
| 78 | + /** |
| 79 | + * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. |
| 80 | + * Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryp |
| 81 | + * toKeyVersions/{cryptoKeyVersion}` |
| 82 | + * The value may be {@code null}. |
| 83 | + */ |
| 84 | + @com.google.api.client.util.Key |
| 85 | + private java.util.List<java.lang.String> serviceAccountSigningKeys; |
| 86 | + |
| 87 | + /** |
| 88 | + * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this |
| 89 | + * cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypto |
| 90 | + * Key}/cryptoKeyVersions/{cryptoKeyVersion}` |
| 91 | + * The value may be {@code null}. |
| 92 | + */ |
| 93 | + @com.google.api.client.util.Key |
| 94 | + private java.util.List<java.lang.String> serviceAccountVerificationKeys; |
| 95 | + |
| 96 | + /** |
| 97 | + * The Certificate Authority Service caPool to use for the aggregation CA in this cluster. |
| 98 | + * @return value or {@code null} for none |
| 99 | + */ |
| 100 | + public java.lang.String getAggregationCa() { |
| 101 | + return aggregationCa; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * The Certificate Authority Service caPool to use for the aggregation CA in this cluster. |
| 106 | + * @param aggregationCa aggregationCa or {@code null} for none |
| 107 | + */ |
| 108 | + public UserManagedKeysConfig setAggregationCa(java.lang.String aggregationCa) { |
| 109 | + this.aggregationCa = aggregationCa; |
| 110 | + return this; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * The Certificate Authority Service caPool to use for the cluster CA in this cluster. |
| 115 | + * @return value or {@code null} for none |
| 116 | + */ |
| 117 | + public java.lang.String getClusterCa() { |
| 118 | + return clusterCa; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * The Certificate Authority Service caPool to use for the cluster CA in this cluster. |
| 123 | + * @param clusterCa clusterCa or {@code null} for none |
| 124 | + */ |
| 125 | + public UserManagedKeysConfig setClusterCa(java.lang.String clusterCa) { |
| 126 | + this.clusterCa = clusterCa; |
| 127 | + return this; |
| 128 | + } |
| 129 | + |
| 130 | + /** |
| 131 | + * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes. |
| 132 | + * @return value or {@code null} for none |
| 133 | + */ |
| 134 | + public java.lang.String getControlPlaneDiskEncryptionKey() { |
| 135 | + return controlPlaneDiskEncryptionKey; |
| 136 | + } |
| 137 | + |
| 138 | + /** |
| 139 | + * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes. |
| 140 | + * @param controlPlaneDiskEncryptionKey controlPlaneDiskEncryptionKey or {@code null} for none |
| 141 | + */ |
| 142 | + public UserManagedKeysConfig setControlPlaneDiskEncryptionKey(java.lang.String controlPlaneDiskEncryptionKey) { |
| 143 | + this.controlPlaneDiskEncryptionKey = controlPlaneDiskEncryptionKey; |
| 144 | + return this; |
| 145 | + } |
| 146 | + |
| 147 | + /** |
| 148 | + * Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this |
| 149 | + * cluster. |
| 150 | + * @return value or {@code null} for none |
| 151 | + */ |
| 152 | + public java.lang.String getEtcdApiCa() { |
| 153 | + return etcdApiCa; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this |
| 158 | + * cluster. |
| 159 | + * @param etcdApiCa etcdApiCa or {@code null} for none |
| 160 | + */ |
| 161 | + public UserManagedKeysConfig setEtcdApiCa(java.lang.String etcdApiCa) { |
| 162 | + this.etcdApiCa = etcdApiCa; |
| 163 | + return this; |
| 164 | + } |
| 165 | + |
| 166 | + /** |
| 167 | + * Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this |
| 168 | + * cluster. |
| 169 | + * @return value or {@code null} for none |
| 170 | + */ |
| 171 | + public java.lang.String getEtcdPeerCa() { |
| 172 | + return etcdPeerCa; |
| 173 | + } |
| 174 | + |
| 175 | + /** |
| 176 | + * Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this |
| 177 | + * cluster. |
| 178 | + * @param etcdPeerCa etcdPeerCa or {@code null} for none |
| 179 | + */ |
| 180 | + public UserManagedKeysConfig setEtcdPeerCa(java.lang.String etcdPeerCa) { |
| 181 | + this.etcdPeerCa = etcdPeerCa; |
| 182 | + return this; |
| 183 | + } |
| 184 | + |
| 185 | + /** |
| 186 | + * Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups. |
| 187 | + * @return value or {@code null} for none |
| 188 | + */ |
| 189 | + public java.lang.String getGkeopsEtcdBackupEncryptionKey() { |
| 190 | + return gkeopsEtcdBackupEncryptionKey; |
| 191 | + } |
| 192 | + |
| 193 | + /** |
| 194 | + * Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups. |
| 195 | + * @param gkeopsEtcdBackupEncryptionKey gkeopsEtcdBackupEncryptionKey or {@code null} for none |
| 196 | + */ |
| 197 | + public UserManagedKeysConfig setGkeopsEtcdBackupEncryptionKey(java.lang.String gkeopsEtcdBackupEncryptionKey) { |
| 198 | + this.gkeopsEtcdBackupEncryptionKey = gkeopsEtcdBackupEncryptionKey; |
| 199 | + return this; |
| 200 | + } |
| 201 | + |
| 202 | + /** |
| 203 | + * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. |
| 204 | + * Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryp |
| 205 | + * toKeyVersions/{cryptoKeyVersion}` |
| 206 | + * @return value or {@code null} for none |
| 207 | + */ |
| 208 | + public java.util.List<java.lang.String> getServiceAccountSigningKeys() { |
| 209 | + return serviceAccountSigningKeys; |
| 210 | + } |
| 211 | + |
| 212 | + /** |
| 213 | + * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. |
| 214 | + * Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryp |
| 215 | + * toKeyVersions/{cryptoKeyVersion}` |
| 216 | + * @param serviceAccountSigningKeys serviceAccountSigningKeys or {@code null} for none |
| 217 | + */ |
| 218 | + public UserManagedKeysConfig setServiceAccountSigningKeys(java.util.List<java.lang.String> serviceAccountSigningKeys) { |
| 219 | + this.serviceAccountSigningKeys = serviceAccountSigningKeys; |
| 220 | + return this; |
| 221 | + } |
| 222 | + |
| 223 | + /** |
| 224 | + * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this |
| 225 | + * cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypto |
| 226 | + * Key}/cryptoKeyVersions/{cryptoKeyVersion}` |
| 227 | + * @return value or {@code null} for none |
| 228 | + */ |
| 229 | + public java.util.List<java.lang.String> getServiceAccountVerificationKeys() { |
| 230 | + return serviceAccountVerificationKeys; |
| 231 | + } |
| 232 | + |
| 233 | + /** |
| 234 | + * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this |
| 235 | + * cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypto |
| 236 | + * Key}/cryptoKeyVersions/{cryptoKeyVersion}` |
| 237 | + * @param serviceAccountVerificationKeys serviceAccountVerificationKeys or {@code null} for none |
| 238 | + */ |
| 239 | + public UserManagedKeysConfig setServiceAccountVerificationKeys(java.util.List<java.lang.String> serviceAccountVerificationKeys) { |
| 240 | + this.serviceAccountVerificationKeys = serviceAccountVerificationKeys; |
| 241 | + return this; |
| 242 | + } |
| 243 | + |
| 244 | + @Override |
| 245 | + public UserManagedKeysConfig set(String fieldName, Object value) { |
| 246 | + return (UserManagedKeysConfig) super.set(fieldName, value); |
| 247 | + } |
| 248 | + |
| 249 | + @Override |
| 250 | + public UserManagedKeysConfig clone() { |
| 251 | + return (UserManagedKeysConfig) super.clone(); |
| 252 | + } |
| 253 | + |
| 254 | +} |
0 commit comments