|
| 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.iam.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Represents configuration for generating mutual TLS (mTLS) certificates for the identities within |
| 21 | + * this pool. |
| 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 Identity and Access Management (IAM) API. For a |
| 25 | + * detailed explanation 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 InlineCertificateIssuanceConfig extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Optional. A required mapping of a cloud region to the CA pool resource located in that region |
| 36 | + * used for certificate issuance, adhering to these constraints: * Key format: A supported cloud |
| 37 | + * region name equivalent to the location identifier in the corresponding map entry's value. * |
| 38 | + * Value format: A valid CA pool resource path format like: |
| 39 | + * "projects/{project}/locations/{location}/caPools/{ca_pool}" * Region Matching: Workloads are |
| 40 | + * ONLY issued certificates from CA pools within the same region. Also the CA pool region (in |
| 41 | + * value) must match the workload's region (key). |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.util.Map<String, java.lang.String> caPools; |
| 46 | + |
| 47 | + /** |
| 48 | + * Optional. Key algorithm to use when generating the key pair. This key pair will be used to |
| 49 | + * create the certificate. If unspecified, this will default to ECDSA_P256. |
| 50 | + * The value may be {@code null}. |
| 51 | + */ |
| 52 | + @com.google.api.client.util.Key |
| 53 | + private java.lang.String keyAlgorithm; |
| 54 | + |
| 55 | + /** |
| 56 | + * Optional. Lifetime of the workload certificates issued by the CA pool. Must be between 10 hours |
| 57 | + * - 30 days. If unspecified, this will be defaulted to 24 hours. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private String lifetime; |
| 62 | + |
| 63 | + /** |
| 64 | + * Optional. Rotation window percentage indicating when certificate rotation should be initiated |
| 65 | + * based on remaining lifetime. Must be between 10 - 80. If unspecified, this will be defaulted to |
| 66 | + * 50. |
| 67 | + * The value may be {@code null}. |
| 68 | + */ |
| 69 | + @com.google.api.client.util.Key |
| 70 | + private java.lang.Integer rotationWindowPercentage; |
| 71 | + |
| 72 | + /** |
| 73 | + * Optional. A required mapping of a cloud region to the CA pool resource located in that region |
| 74 | + * used for certificate issuance, adhering to these constraints: * Key format: A supported cloud |
| 75 | + * region name equivalent to the location identifier in the corresponding map entry's value. * |
| 76 | + * Value format: A valid CA pool resource path format like: |
| 77 | + * "projects/{project}/locations/{location}/caPools/{ca_pool}" * Region Matching: Workloads are |
| 78 | + * ONLY issued certificates from CA pools within the same region. Also the CA pool region (in |
| 79 | + * value) must match the workload's region (key). |
| 80 | + * @return value or {@code null} for none |
| 81 | + */ |
| 82 | + public java.util.Map<String, java.lang.String> getCaPools() { |
| 83 | + return caPools; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * Optional. A required mapping of a cloud region to the CA pool resource located in that region |
| 88 | + * used for certificate issuance, adhering to these constraints: * Key format: A supported cloud |
| 89 | + * region name equivalent to the location identifier in the corresponding map entry's value. * |
| 90 | + * Value format: A valid CA pool resource path format like: |
| 91 | + * "projects/{project}/locations/{location}/caPools/{ca_pool}" * Region Matching: Workloads are |
| 92 | + * ONLY issued certificates from CA pools within the same region. Also the CA pool region (in |
| 93 | + * value) must match the workload's region (key). |
| 94 | + * @param caPools caPools or {@code null} for none |
| 95 | + */ |
| 96 | + public InlineCertificateIssuanceConfig setCaPools(java.util.Map<String, java.lang.String> caPools) { |
| 97 | + this.caPools = caPools; |
| 98 | + return this; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Optional. Key algorithm to use when generating the key pair. This key pair will be used to |
| 103 | + * create the certificate. If unspecified, this will default to ECDSA_P256. |
| 104 | + * @return value or {@code null} for none |
| 105 | + */ |
| 106 | + public java.lang.String getKeyAlgorithm() { |
| 107 | + return keyAlgorithm; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Optional. Key algorithm to use when generating the key pair. This key pair will be used to |
| 112 | + * create the certificate. If unspecified, this will default to ECDSA_P256. |
| 113 | + * @param keyAlgorithm keyAlgorithm or {@code null} for none |
| 114 | + */ |
| 115 | + public InlineCertificateIssuanceConfig setKeyAlgorithm(java.lang.String keyAlgorithm) { |
| 116 | + this.keyAlgorithm = keyAlgorithm; |
| 117 | + return this; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Optional. Lifetime of the workload certificates issued by the CA pool. Must be between 10 hours |
| 122 | + * - 30 days. If unspecified, this will be defaulted to 24 hours. |
| 123 | + * @return value or {@code null} for none |
| 124 | + */ |
| 125 | + public String getLifetime() { |
| 126 | + return lifetime; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * Optional. Lifetime of the workload certificates issued by the CA pool. Must be between 10 hours |
| 131 | + * - 30 days. If unspecified, this will be defaulted to 24 hours. |
| 132 | + * @param lifetime lifetime or {@code null} for none |
| 133 | + */ |
| 134 | + public InlineCertificateIssuanceConfig setLifetime(String lifetime) { |
| 135 | + this.lifetime = lifetime; |
| 136 | + return this; |
| 137 | + } |
| 138 | + |
| 139 | + /** |
| 140 | + * Optional. Rotation window percentage indicating when certificate rotation should be initiated |
| 141 | + * based on remaining lifetime. Must be between 10 - 80. If unspecified, this will be defaulted to |
| 142 | + * 50. |
| 143 | + * @return value or {@code null} for none |
| 144 | + */ |
| 145 | + public java.lang.Integer getRotationWindowPercentage() { |
| 146 | + return rotationWindowPercentage; |
| 147 | + } |
| 148 | + |
| 149 | + /** |
| 150 | + * Optional. Rotation window percentage indicating when certificate rotation should be initiated |
| 151 | + * based on remaining lifetime. Must be between 10 - 80. If unspecified, this will be defaulted to |
| 152 | + * 50. |
| 153 | + * @param rotationWindowPercentage rotationWindowPercentage or {@code null} for none |
| 154 | + */ |
| 155 | + public InlineCertificateIssuanceConfig setRotationWindowPercentage(java.lang.Integer rotationWindowPercentage) { |
| 156 | + this.rotationWindowPercentage = rotationWindowPercentage; |
| 157 | + return this; |
| 158 | + } |
| 159 | + |
| 160 | + @Override |
| 161 | + public InlineCertificateIssuanceConfig set(String fieldName, Object value) { |
| 162 | + return (InlineCertificateIssuanceConfig) super.set(fieldName, value); |
| 163 | + } |
| 164 | + |
| 165 | + @Override |
| 166 | + public InlineCertificateIssuanceConfig clone() { |
| 167 | + return (InlineCertificateIssuanceConfig) super.clone(); |
| 168 | + } |
| 169 | + |
| 170 | +} |
0 commit comments