3030import java.util.Map;
3131import java.util.Objects;
3232
33- /** TLSConfig used for the target pool . */
33+ /** Set this to configure TLS settings . */
3434@javax.annotation.Generated(
3535 value = "org.openapitools.codegen.languages.JavaClientCodegen",
3636 comments = "Generator version: 7.19.0")
37- public class TargetPoolTlsConfig {
37+ public class TlsConfig {
3838 public static final String SERIALIZED_NAME_CUSTOM_CA = "customCa";
3939
4040 @SerializedName(SERIALIZED_NAME_CUSTOM_CA)
@@ -51,9 +51,9 @@ public class TargetPoolTlsConfig {
5151 @SerializedName(SERIALIZED_NAME_SKIP_CERTIFICATE_VALIDATION)
5252 @javax.annotation.Nullable private Boolean skipCertificateValidation;
5353
54- public TargetPoolTlsConfig () {}
54+ public TlsConfig () {}
5555
56- public TargetPoolTlsConfig customCa(@javax.annotation.Nullable String customCa) {
56+ public TlsConfig customCa(@javax.annotation.Nullable String customCa) {
5757 this.customCa = customCa;
5858 return this;
5959 }
@@ -75,7 +75,7 @@ public void setCustomCa(@javax.annotation.Nullable String customCa) {
7575 this.customCa = customCa;
7676 }
7777
78- public TargetPoolTlsConfig enabled(@javax.annotation.Nullable Boolean enabled) {
78+ public TlsConfig enabled(@javax.annotation.Nullable Boolean enabled) {
7979 this.enabled = enabled;
8080 return this;
8181 }
@@ -95,7 +95,7 @@ public void setEnabled(@javax.annotation.Nullable Boolean enabled) {
9595 this.enabled = enabled;
9696 }
9797
98- public TargetPoolTlsConfig skipCertificateValidation(
98+ public TlsConfig skipCertificateValidation(
9999 @javax.annotation.Nullable Boolean skipCertificateValidation) {
100100 this.skipCertificateValidation = skipCertificateValidation;
101101 return this;
@@ -129,9 +129,9 @@ public void setSkipCertificateValidation(
129129 *
130130 * @param key name of the property
131131 * @param value value of the property
132- * @return the TargetPoolTlsConfig instance itself
132+ * @return the TlsConfig instance itself
133133 */
134- public TargetPoolTlsConfig putAdditionalProperty(String key, Object value) {
134+ public TlsConfig putAdditionalProperty(String key, Object value) {
135135 if (this.additionalProperties == null) {
136136 this.additionalProperties = new HashMap<String, Object>();
137137 }
@@ -169,14 +169,12 @@ public boolean equals(Object o) {
169169 if (o == null || getClass() != o.getClass()) {
170170 return false;
171171 }
172- TargetPoolTlsConfig targetPoolTlsConfig = (TargetPoolTlsConfig ) o;
173- return Objects.equals(this.customCa, targetPoolTlsConfig .customCa)
174- && Objects.equals(this.enabled, targetPoolTlsConfig .enabled)
172+ TlsConfig tlsConfig = (TlsConfig ) o;
173+ return Objects.equals(this.customCa, tlsConfig .customCa)
174+ && Objects.equals(this.enabled, tlsConfig .enabled)
175175 && Objects.equals(
176- this.skipCertificateValidation,
177- targetPoolTlsConfig.skipCertificateValidation)
178- && Objects.equals(
179- this.additionalProperties, targetPoolTlsConfig.additionalProperties);
176+ this.skipCertificateValidation, tlsConfig.skipCertificateValidation)
177+ && Objects.equals(this.additionalProperties, tlsConfig.additionalProperties);
180178 }
181179
182180 @Override
@@ -187,7 +185,7 @@ public int hashCode() {
187185 @Override
188186 public String toString() {
189187 StringBuilder sb = new StringBuilder();
190- sb.append("class TargetPoolTlsConfig {\n");
188+ sb.append("class TlsConfig {\n");
191189 sb.append(" customCa: ").append(toIndentedString(customCa)).append("\n");
192190 sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
193191 sb.append(" skipCertificateValidation: ")
@@ -228,17 +226,17 @@ private String toIndentedString(Object o) {
228226 * Validates the JSON Element and throws an exception if issues found
229227 *
230228 * @param jsonElement JSON Element
231- * @throws IOException if the JSON Element is invalid with respect to TargetPoolTlsConfig
229+ * @throws IOException if the JSON Element is invalid with respect to TlsConfig
232230 */
233231 public static void validateJsonElement(JsonElement jsonElement) throws IOException {
234232 if (jsonElement == null) {
235- if (!TargetPoolTlsConfig .openapiRequiredFields
233+ if (!TlsConfig .openapiRequiredFields
236234 .isEmpty()) { // has required fields but JSON element is null
237235 throw new IllegalArgumentException(
238236 String.format(
239237 java.util.Locale.ROOT,
240- "The required field(s) %s in TargetPoolTlsConfig is not found in the empty JSON string",
241- TargetPoolTlsConfig .openapiRequiredFields.toString()));
238+ "The required field(s) %s in TlsConfig is not found in the empty JSON string",
239+ TlsConfig .openapiRequiredFields.toString()));
242240 }
243241 }
244242 JsonObject jsonObj = jsonElement.getAsJsonObject();
@@ -256,18 +254,17 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
256254 @SuppressWarnings("unchecked")
257255 @Override
258256 public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
259- if (!TargetPoolTlsConfig .class.isAssignableFrom(type.getRawType())) {
260- return null; // this class only serializes 'TargetPoolTlsConfig ' and its subtypes
257+ if (!TlsConfig .class.isAssignableFrom(type.getRawType())) {
258+ return null; // this class only serializes 'TlsConfig ' and its subtypes
261259 }
262260 final TypeAdapter<JsonElement> elementAdapter = gson.getAdapter(JsonElement.class);
263- final TypeAdapter<TargetPoolTlsConfig > thisAdapter =
264- gson.getDelegateAdapter(this, TypeToken.get(TargetPoolTlsConfig .class));
261+ final TypeAdapter<TlsConfig > thisAdapter =
262+ gson.getDelegateAdapter(this, TypeToken.get(TlsConfig .class));
265263
266264 return (TypeAdapter<T>)
267- new TypeAdapter<TargetPoolTlsConfig >() {
265+ new TypeAdapter<TlsConfig >() {
268266 @Override
269- public void write(JsonWriter out, TargetPoolTlsConfig value)
270- throws IOException {
267+ public void write(JsonWriter out, TlsConfig value) throws IOException {
271268 JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
272269 obj.remove("additionalProperties");
273270 // serialize additional properties
@@ -297,12 +294,12 @@ else if (entry.getValue() instanceof Character)
297294 }
298295
299296 @Override
300- public TargetPoolTlsConfig read(JsonReader in) throws IOException {
297+ public TlsConfig read(JsonReader in) throws IOException {
301298 JsonElement jsonElement = elementAdapter.read(in);
302299 validateJsonElement(jsonElement);
303300 JsonObject jsonObj = jsonElement.getAsJsonObject();
304301 // store additional fields in the deserialized instance
305- TargetPoolTlsConfig instance = thisAdapter.fromJsonTree(jsonObj);
302+ TlsConfig instance = thisAdapter.fromJsonTree(jsonObj);
306303 for (Map.Entry<String, JsonElement> entry : jsonObj.entrySet()) {
307304 if (!openapiFields.contains(entry.getKey())) {
308305 if (entry.getValue().isJsonPrimitive()) { // primitive type
@@ -341,18 +338,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
341338 }
342339
343340 /**
344- * Create an instance of TargetPoolTlsConfig given an JSON string
341+ * Create an instance of TlsConfig given an JSON string
345342 *
346343 * @param jsonString JSON string
347- * @return An instance of TargetPoolTlsConfig
348- * @throws IOException if the JSON string is invalid with respect to TargetPoolTlsConfig
344+ * @return An instance of TlsConfig
345+ * @throws IOException if the JSON string is invalid with respect to TlsConfig
349346 */
350- public static TargetPoolTlsConfig fromJson(String jsonString) throws IOException {
351- return JSON.getGson().fromJson(jsonString, TargetPoolTlsConfig .class);
347+ public static TlsConfig fromJson(String jsonString) throws IOException {
348+ return JSON.getGson().fromJson(jsonString, TlsConfig .class);
352349 }
353350
354351 /**
355- * Convert an instance of TargetPoolTlsConfig to an JSON string
352+ * Convert an instance of TlsConfig to an JSON string
356353 *
357354 * @return JSON string
358355 */
0 commit comments