diff --git a/checkstyle.xml b/checkstyle.xml index 6fbb0a175..646adba05 100755 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -14,7 +14,7 @@ - + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettings.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettings.java index dc4c8f53a..4c2c88ba0 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettings.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettings.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -12,7 +12,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.12.1-318e07c8-20200909-152230 + * IBM OpenAPI SDK Code Generator Version: 3.112.0-f88e9264-20260220-115155 */ package com.ibm.cloud.networking.zones_settings.v1; @@ -21,14 +21,20 @@ import com.ibm.cloud.networking.common.SdkCommon; import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsResp; import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesResp; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtResp; +import com.ibm.cloud.networking.zones_settings.v1.model.BrotliResp; import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckResp; import com.ibm.cloud.networking.zones_settings.v1.model.ChallengeTtlResp; import com.ibm.cloud.networking.zones_settings.v1.model.CiphersResp; +import com.ibm.cloud.networking.zones_settings.v1.model.EmailObfuscationResp; import com.ibm.cloud.networking.zones_settings.v1.model.GetAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetAutomaticHttpsRewritesOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBrotliOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetCiphersOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetEmailObfuscationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetHttp2Options; @@ -37,13 +43,19 @@ import com.ibm.cloud.networking.zones_settings.v1.model.GetImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpv6Options; +import com.ibm.cloud.networking.zones_settings.v1.model.GetLogRetentionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginPostQuantumEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetPrefetchPreloadOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetProxyReadTimeoutOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetPseudoIpv4Options; +import com.ibm.cloud.networking.zones_settings.v1.model.GetReplaceInsecureJsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetSecurityHeaderOptions; @@ -61,14 +73,20 @@ import com.ibm.cloud.networking.zones_settings.v1.model.ImageSizeOptimizationResp; import com.ibm.cloud.networking.zones_settings.v1.model.IpGeolocationResp; import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6Resp; +import com.ibm.cloud.networking.zones_settings.v1.model.LogRetentionResp; import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadResp; import com.ibm.cloud.networking.zones_settings.v1.model.MinTlsVersionResp; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyResp; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectResp; import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticOnionResp; import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginMaxHttpVersionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginPostQuantumEncryptionResp; import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadResp; +import com.ibm.cloud.networking.zones_settings.v1.model.ProxyReadTimeoutResp; import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4Resp; +import com.ibm.cloud.networking.zones_settings.v1.model.ReplaceInsecureJsResp; import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingResp; import com.ibm.cloud.networking.zones_settings.v1.model.ScriptLoadOptimizationResp; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderResp; @@ -77,9 +95,12 @@ import com.ibm.cloud.networking.zones_settings.v1.model.TrueClientIpResp; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAutomaticHttpsRewritesOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrotliOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateCiphersOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEmailObfuscationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHttp2Options; @@ -88,13 +109,19 @@ import com.ibm.cloud.networking.zones_settings.v1.model.UpdateImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpv6Options; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateLogRetentionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginPostQuantumEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePrefetchPreloadOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateProxyReadTimeoutOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePseudoIpv4Options; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateReplaceInsecureJsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateSecurityHeaderOptions; @@ -116,19 +143,25 @@ import com.ibm.cloud.sdk.core.security.ConfigBasedAuthenticatorFactory; import com.ibm.cloud.sdk.core.service.BaseService; import com.ibm.cloud.sdk.core.util.ResponseConverterUtils; +import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; -import java.util.HashMap; /** * CIS Zones Settings. * - * @version v1 + * API Version: 1.0.1 */ public class ZonesSettings extends BaseService { + /** + * Default service name used when configuring the `ZonesSettings` client. + */ public static final String DEFAULT_SERVICE_NAME = "zones_settings"; + /** + * Default service endpoint URL. + */ public static final String DEFAULT_SERVICE_URL = "https://api.cis.cloud.ibm.com"; private String crn; @@ -230,9 +263,10 @@ public void setZoneIdentifier(final String zoneIdentifier) { * @return a {@link ServiceCall} with a result of type {@link ZonesDnssecResp} */ public ServiceCall getZoneDnssec(GetZoneDnssecOptions getZoneDnssecOptions) { - String[] pathSegments = { "v1", "zones", "dnssec" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/dnssec", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getZoneDnssec"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -268,9 +302,10 @@ public ServiceCall updateZoneDnssec(UpdateZoneDnssecOptions upd updateZoneDnssecOptions = new UpdateZoneDnssecOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "dnssec" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/dnssec", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateZoneDnssec"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -308,9 +343,10 @@ public ServiceCall updateZoneDnssec() { * @return a {@link ServiceCall} with a result of type {@link ZonesCnameFlatteningResp} */ public ServiceCall getZoneCnameFlattening(GetZoneCnameFlatteningOptions getZoneCnameFlatteningOptions) { - String[] pathSegments = { "v1", "zones", "settings/cname_flattening" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/cname_flattening", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getZoneCnameFlattening"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -346,9 +382,10 @@ public ServiceCall updateZoneCnameFlattening(UpdateZon updateZoneCnameFlatteningOptions = new UpdateZoneCnameFlatteningOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/cname_flattening" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/cname_flattening", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateZoneCnameFlattening"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -386,9 +423,10 @@ public ServiceCall updateZoneCnameFlattening() { * @return a {@link ServiceCall} with a result of type {@link OpportunisticEncryptionResp} */ public ServiceCall getOpportunisticEncryption(GetOpportunisticEncryptionOptions getOpportunisticEncryptionOptions) { - String[] pathSegments = { "v1", "zones", "settings/opportunistic_encryption" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/opportunistic_encryption", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getOpportunisticEncryption"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -424,9 +462,10 @@ public ServiceCall updateOpportunisticEncryption(Up updateOpportunisticEncryptionOptions = new UpdateOpportunisticEncryptionOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/opportunistic_encryption" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/opportunistic_encryption", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateOpportunisticEncryption"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -455,6 +494,86 @@ public ServiceCall updateOpportunisticEncryption() return updateOpportunisticEncryption(null); } + /** + * Get opportunistic onion setting. + * + * Get opportunistic onion setting for a zone. + * + * @param getOpportunisticOnionOptions the {@link GetOpportunisticOnionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link OpportunisticOnionResp} + */ + public ServiceCall getOpportunisticOnion(GetOpportunisticOnionOptions getOpportunisticOnionOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/opportunistic_onion", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getOpportunisticOnion"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get opportunistic onion setting. + * + * Get opportunistic onion setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link OpportunisticOnionResp} + */ + public ServiceCall getOpportunisticOnion() { + return getOpportunisticOnion(null); + } + + /** + * Update opportunistic onion setting. + * + * Update opportunistic onion setting for a zone. + * + * @param updateOpportunisticOnionOptions the {@link UpdateOpportunisticOnionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link OpportunisticOnionResp} + */ + public ServiceCall updateOpportunisticOnion(UpdateOpportunisticOnionOptions updateOpportunisticOnionOptions) { + boolean skipBody = false; + if (updateOpportunisticOnionOptions == null) { + updateOpportunisticOnionOptions = new UpdateOpportunisticOnionOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/opportunistic_onion", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateOpportunisticOnion"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateOpportunisticOnionOptions.value() != null) { + contentJson.addProperty("value", updateOpportunisticOnionOptions.value()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update opportunistic onion setting. + * + * Update opportunistic onion setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link OpportunisticOnionResp} + */ + public ServiceCall updateOpportunisticOnion() { + return updateOpportunisticOnion(null); + } + /** * Get challenge TTL setting. * @@ -464,9 +583,10 @@ public ServiceCall updateOpportunisticEncryption() * @return a {@link ServiceCall} with a result of type {@link ChallengeTtlResp} */ public ServiceCall getChallengeTtl(GetChallengeTtlOptions getChallengeTtlOptions) { - String[] pathSegments = { "v1", "zones", "settings/challenge_ttl" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/challenge_ttl", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getChallengeTtl"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -502,9 +622,10 @@ public ServiceCall updateChallengeTtl(UpdateChallengeTtlOption updateChallengeTtlOptions = new UpdateChallengeTtlOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/challenge_ttl" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/challenge_ttl", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateChallengeTtl"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -542,9 +663,10 @@ public ServiceCall updateChallengeTtl() { * @return a {@link ServiceCall} with a result of type {@link AutomaticHttpsRewritesResp} */ public ServiceCall getAutomaticHttpsRewrites(GetAutomaticHttpsRewritesOptions getAutomaticHttpsRewritesOptions) { - String[] pathSegments = { "v1", "zones", "settings/automatic_https_rewrites" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/automatic_https_rewrites", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getAutomaticHttpsRewrites"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -580,9 +702,10 @@ public ServiceCall updateAutomaticHttpsRewrites(Upda updateAutomaticHttpsRewritesOptions = new UpdateAutomaticHttpsRewritesOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/automatic_https_rewrites" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/automatic_https_rewrites", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateAutomaticHttpsRewrites"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -620,9 +743,10 @@ public ServiceCall updateAutomaticHttpsRewrites() { * @return a {@link ServiceCall} with a result of type {@link TrueClientIpResp} */ public ServiceCall getTrueClientIp(GetTrueClientIpOptions getTrueClientIpOptions) { - String[] pathSegments = { "v1", "zones", "settings/true_client_ip_header" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/true_client_ip_header", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getTrueClientIp"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -658,9 +782,10 @@ public ServiceCall updateTrueClientIp(UpdateTrueClientIpOption updateTrueClientIpOptions = new UpdateTrueClientIpOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/true_client_ip_header" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/true_client_ip_header", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateTrueClientIp"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -698,9 +823,10 @@ public ServiceCall updateTrueClientIp() { * @return a {@link ServiceCall} with a result of type {@link AlwaysUseHttpsResp} */ public ServiceCall getAlwaysUseHttps(GetAlwaysUseHttpsOptions getAlwaysUseHttpsOptions) { - String[] pathSegments = { "v1", "zones", "settings/always_use_https" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/always_use_https", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getAlwaysUseHttps"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -736,9 +862,10 @@ public ServiceCall updateAlwaysUseHttps(UpdateAlwaysUseHttps updateAlwaysUseHttpsOptions = new UpdateAlwaysUseHttpsOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/always_use_https" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/always_use_https", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateAlwaysUseHttps"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -776,9 +903,10 @@ public ServiceCall updateAlwaysUseHttps() { * @return a {@link ServiceCall} with a result of type {@link ImageSizeOptimizationResp} */ public ServiceCall getImageSizeOptimization(GetImageSizeOptimizationOptions getImageSizeOptimizationOptions) { - String[] pathSegments = { "v1", "zones", "settings/image_size_optimization" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/image_size_optimization", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getImageSizeOptimization"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -814,9 +942,10 @@ public ServiceCall updateImageSizeOptimization(Update updateImageSizeOptimizationOptions = new UpdateImageSizeOptimizationOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/image_size_optimization" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/image_size_optimization", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateImageSizeOptimization"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -854,9 +983,10 @@ public ServiceCall updateImageSizeOptimization() { * @return a {@link ServiceCall} with a result of type {@link ScriptLoadOptimizationResp} */ public ServiceCall getScriptLoadOptimization(GetScriptLoadOptimizationOptions getScriptLoadOptimizationOptions) { - String[] pathSegments = { "v1", "zones", "settings/script_load_optimization" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/script_load_optimization", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getScriptLoadOptimization"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -892,9 +1022,10 @@ public ServiceCall updateScriptLoadOptimization(Upda updateScriptLoadOptimizationOptions = new UpdateScriptLoadOptimizationOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/script_load_optimization" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/script_load_optimization", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateScriptLoadOptimization"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -932,9 +1063,10 @@ public ServiceCall updateScriptLoadOptimization() { * @return a {@link ServiceCall} with a result of type {@link ImageLoadOptimizationResp} */ public ServiceCall getImageLoadOptimization(GetImageLoadOptimizationOptions getImageLoadOptimizationOptions) { - String[] pathSegments = { "v1", "zones", "settings/image_load_optimization" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/image_load_optimization", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getImageLoadOptimization"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -970,9 +1102,10 @@ public ServiceCall updateImageLoadOptimization(Update updateImageLoadOptimizationOptions = new UpdateImageLoadOptimizationOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/image_load_optimization" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/image_load_optimization", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateImageLoadOptimization"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1010,9 +1143,10 @@ public ServiceCall updateImageLoadOptimization() { * @return a {@link ServiceCall} with a result of type {@link MinifyResp} */ public ServiceCall getMinify(GetMinifyOptions getMinifyOptions) { - String[] pathSegments = { "v1", "zones", "settings/minify" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/minify", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getMinify"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1048,9 +1182,10 @@ public ServiceCall updateMinify(UpdateMinifyOptions updateMinifyOpti updateMinifyOptions = new UpdateMinifyOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/minify" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/minify", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateMinify"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1088,9 +1223,10 @@ public ServiceCall updateMinify() { * @return a {@link ServiceCall} with a result of type {@link MinTlsVersionResp} */ public ServiceCall getMinTlsVersion(GetMinTlsVersionOptions getMinTlsVersionOptions) { - String[] pathSegments = { "v1", "zones", "settings/min_tls_version" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/min_tls_version", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getMinTlsVersion"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1126,9 +1262,10 @@ public ServiceCall updateMinTlsVersion(UpdateMinTlsVersionOpt updateMinTlsVersionOptions = new UpdateMinTlsVersionOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/min_tls_version" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/min_tls_version", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateMinTlsVersion"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1166,9 +1303,10 @@ public ServiceCall updateMinTlsVersion() { * @return a {@link ServiceCall} with a result of type {@link IpGeolocationResp} */ public ServiceCall getIpGeolocation(GetIpGeolocationOptions getIpGeolocationOptions) { - String[] pathSegments = { "v1", "zones", "settings/ip_geolocation" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/ip_geolocation", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getIpGeolocation"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1204,9 +1342,10 @@ public ServiceCall updateIpGeolocation(UpdateIpGeolocationOpt updateIpGeolocationOptions = new UpdateIpGeolocationOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/ip_geolocation" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/ip_geolocation", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateIpGeolocation"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1244,9 +1383,10 @@ public ServiceCall updateIpGeolocation() { * @return a {@link ServiceCall} with a result of type {@link ServerSideExcludeResp} */ public ServiceCall getServerSideExclude(GetServerSideExcludeOptions getServerSideExcludeOptions) { - String[] pathSegments = { "v1", "zones", "settings/server_side_exclude" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/server_side_exclude", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getServerSideExclude"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1282,9 +1422,10 @@ public ServiceCall updateServerSideExclude(UpdateServerSi updateServerSideExcludeOptions = new UpdateServerSideExcludeOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/server_side_exclude" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/server_side_exclude", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateServerSideExclude"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1322,9 +1463,10 @@ public ServiceCall updateServerSideExclude() { * @return a {@link ServiceCall} with a result of type {@link SecurityHeaderResp} */ public ServiceCall getSecurityHeader(GetSecurityHeaderOptions getSecurityHeaderOptions) { - String[] pathSegments = { "v1", "zones", "settings/security_header" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/security_header", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getSecurityHeader"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1360,9 +1502,10 @@ public ServiceCall updateSecurityHeader(UpdateSecurityHeader updateSecurityHeaderOptions = new UpdateSecurityHeaderOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/security_header" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/security_header", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateSecurityHeader"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1400,9 +1543,10 @@ public ServiceCall updateSecurityHeader() { * @return a {@link ServiceCall} with a result of type {@link MobileRedirectResp} */ public ServiceCall getMobileRedirect(GetMobileRedirectOptions getMobileRedirectOptions) { - String[] pathSegments = { "v1", "zones", "settings/mobile_redirect" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/mobile_redirect", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getMobileRedirect"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1438,9 +1582,10 @@ public ServiceCall updateMobileRedirect(UpdateMobileRedirect updateMobileRedirectOptions = new UpdateMobileRedirectOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/mobile_redirect" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/mobile_redirect", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateMobileRedirect"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1478,9 +1623,10 @@ public ServiceCall updateMobileRedirect() { * @return a {@link ServiceCall} with a result of type {@link PrefetchPreloadResp} */ public ServiceCall getPrefetchPreload(GetPrefetchPreloadOptions getPrefetchPreloadOptions) { - String[] pathSegments = { "v1", "zones", "settings/prefetch_preload" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/prefetch_preload", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getPrefetchPreload"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1516,9 +1662,10 @@ public ServiceCall updatePrefetchPreload(UpdatePrefetchPrel updatePrefetchPreloadOptions = new UpdatePrefetchPreloadOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/prefetch_preload" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/prefetch_preload", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updatePrefetchPreload"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1556,9 +1703,10 @@ public ServiceCall updatePrefetchPreload() { * @return a {@link ServiceCall} with a result of type {@link Http2Resp} */ public ServiceCall getHttp2(GetHttp2Options getHttp2Options) { - String[] pathSegments = { "v1", "zones", "settings/http2" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/http2", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getHttp2"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1594,9 +1742,10 @@ public ServiceCall updateHttp2(UpdateHttp2Options updateHttp2Options) updateHttp2Options = new UpdateHttp2Options.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/http2" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/http2", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateHttp2"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1625,28 +1774,6 @@ public ServiceCall updateHttp2() { return updateHttp2(null); } - /** - * Get IPv6 compatibility setting. - * - * Get IPv6 compatibility setting for a zone. - * - * @param getIpv6Options the {@link GetIpv6Options} containing the options for the call - * @return a {@link ServiceCall} with a result of type {@link Ipv6Resp} - */ - public ServiceCall getIpv6(GetIpv6Options getIpv6Options) { - String[] pathSegments = { "v1", "zones", "settings/ipv6" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); - Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getIpv6"); - for (Entry header : sdkHeaders.entrySet()) { - builder.header(header.getKey(), header.getValue()); - } - builder.header("Accept", "application/json"); - ResponseConverter responseConverter = - ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); - return createServiceCall(builder.build(), responseConverter); - } - /** * Get http/3 setting. * @@ -1727,6 +1854,29 @@ public ServiceCall updateHttp3() { return updateHttp3(null); } + /** + * Get IPv6 compatibility setting. + * + * Get IPv6 compatibility setting for a zone. + * + * @param getIpv6Options the {@link GetIpv6Options} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link Ipv6Resp} + */ + public ServiceCall getIpv6(GetIpv6Options getIpv6Options) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/ipv6", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getIpv6"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + /** * Get IPv6 compatibility setting. * @@ -1752,9 +1902,10 @@ public ServiceCall updateIpv6(UpdateIpv6Options updateIpv6Options) { updateIpv6Options = new UpdateIpv6Options.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/ipv6" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/ipv6", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateIpv6"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1792,9 +1943,10 @@ public ServiceCall updateIpv6() { * @return a {@link ServiceCall} with a result of type {@link WebsocketsResp} */ public ServiceCall getWebSockets(GetWebSocketsOptions getWebSocketsOptions) { - String[] pathSegments = { "v1", "zones", "settings/websockets" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/websockets", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getWebSockets"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1830,9 +1982,10 @@ public ServiceCall updateWebSockets(UpdateWebSocketsOptions upda updateWebSocketsOptions = new UpdateWebSocketsOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/websockets" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/websockets", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateWebSockets"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1870,9 +2023,10 @@ public ServiceCall updateWebSockets() { * @return a {@link ServiceCall} with a result of type {@link PseudoIpv4Resp} */ public ServiceCall getPseudoIpv4(GetPseudoIpv4Options getPseudoIpv4Options) { - String[] pathSegments = { "v1", "zones", "settings/pseudo_ipv4" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/pseudo_ipv4", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getPseudoIpv4"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1908,9 +2062,10 @@ public ServiceCall updatePseudoIpv4(UpdatePseudoIpv4Options upda updatePseudoIpv4Options = new UpdatePseudoIpv4Options.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/pseudo_ipv4" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/pseudo_ipv4", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updatePseudoIpv4"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1948,9 +2103,10 @@ public ServiceCall updatePseudoIpv4() { * @return a {@link ServiceCall} with a result of type {@link ResponseBufferingResp} */ public ServiceCall getResponseBuffering(GetResponseBufferingOptions getResponseBufferingOptions) { - String[] pathSegments = { "v1", "zones", "settings/response_buffering" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/response_buffering", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getResponseBuffering"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -1986,9 +2142,10 @@ public ServiceCall updateResponseBuffering(UpdateResponse updateResponseBufferingOptions = new UpdateResponseBufferingOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/response_buffering" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/response_buffering", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateResponseBuffering"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2026,9 +2183,10 @@ public ServiceCall updateResponseBuffering() { * @return a {@link ServiceCall} with a result of type {@link HotlinkProtectionResp} */ public ServiceCall getHotlinkProtection(GetHotlinkProtectionOptions getHotlinkProtectionOptions) { - String[] pathSegments = { "v1", "zones", "settings/hotlink_protection" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/hotlink_protection", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getHotlinkProtection"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2064,9 +2222,10 @@ public ServiceCall updateHotlinkProtection(UpdateHotlinkP updateHotlinkProtectionOptions = new UpdateHotlinkProtectionOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/hotlink_protection" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/hotlink_protection", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateHotlinkProtection"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2104,9 +2263,10 @@ public ServiceCall updateHotlinkProtection() { * @return a {@link ServiceCall} with a result of type {@link MaxUploadResp} */ public ServiceCall getMaxUpload(GetMaxUploadOptions getMaxUploadOptions) { - String[] pathSegments = { "v1", "zones", "settings/max_upload" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/max_upload", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getMaxUpload"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2142,9 +2302,10 @@ public ServiceCall updateMaxUpload(UpdateMaxUploadOptions updateM updateMaxUploadOptions = new UpdateMaxUploadOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/max_upload" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/max_upload", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateMaxUpload"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2182,9 +2343,10 @@ public ServiceCall updateMaxUpload() { * @return a {@link ServiceCall} with a result of type {@link TlsClientAuthResp} */ public ServiceCall getTlsClientAuth(GetTlsClientAuthOptions getTlsClientAuthOptions) { - String[] pathSegments = { "v1", "zones", "settings/tls_client_auth" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/tls_client_auth", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getTlsClientAuth"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2220,9 +2382,10 @@ public ServiceCall updateTlsClientAuth(UpdateTlsClientAuthOpt updateTlsClientAuthOptions = new UpdateTlsClientAuthOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/tls_client_auth" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/tls_client_auth", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateTlsClientAuth"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2252,33 +2415,194 @@ public ServiceCall updateTlsClientAuth() { } /** - * Get browser check setting. + * Get brotli setting. * - * Get browser check setting for a zone. + * Get brotli setting for a zone. * - * @param getBrowserCheckOptions the {@link GetBrowserCheckOptions} containing the options for the call - * @return a {@link ServiceCall} with a result of type {@link BrowserCheckResp} + * @param getBrotliOptions the {@link GetBrotliOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link BrotliResp} */ - public ServiceCall getBrowserCheck(GetBrowserCheckOptions getBrowserCheckOptions) { - String[] pathSegments = { "v1", "zones", "settings/browser_check" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); - Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getBrowserCheck"); + public ServiceCall getBrotli(GetBrotliOptions getBrotliOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/brotli", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getBrotli"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); } builder.header("Accept", "application/json"); - ResponseConverter responseConverter = - ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); return createServiceCall(builder.build(), responseConverter); } /** - * Get browser check setting. + * Get brotli setting. * - * Get browser check setting for a zone. + * Get brotli setting for a zone. * - * @return a {@link ServiceCall} with a result of type {@link BrowserCheckResp} + * @return a {@link ServiceCall} with a result of type {@link BrotliResp} + */ + public ServiceCall getBrotli() { + return getBrotli(null); + } + + /** + * Update brotli setting. + * + * Update brotli setting for a zone. + * + * @param updateBrotliOptions the {@link UpdateBrotliOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link BrotliResp} + */ + public ServiceCall updateBrotli(UpdateBrotliOptions updateBrotliOptions) { + boolean skipBody = false; + if (updateBrotliOptions == null) { + updateBrotliOptions = new UpdateBrotliOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/brotli", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateBrotli"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateBrotliOptions.value() != null) { + contentJson.addProperty("value", updateBrotliOptions.value()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update brotli setting. + * + * Update brotli setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link BrotliResp} + */ + public ServiceCall updateBrotli() { + return updateBrotli(null); + } + + /** + * Get proxy read timeout setting. + * + * Get proxy read timeout setting for a zone. + * + * @param getProxyReadTimeoutOptions the {@link GetProxyReadTimeoutOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link ProxyReadTimeoutResp} + */ + public ServiceCall getProxyReadTimeout(GetProxyReadTimeoutOptions getProxyReadTimeoutOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/proxy_read_timeout", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getProxyReadTimeout"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get proxy read timeout setting. + * + * Get proxy read timeout setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link ProxyReadTimeoutResp} + */ + public ServiceCall getProxyReadTimeout() { + return getProxyReadTimeout(null); + } + + /** + * Update proxy read timeout setting. + * + * Update proxy read timeout setting for a zone. + * + * @param updateProxyReadTimeoutOptions the {@link UpdateProxyReadTimeoutOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link ProxyReadTimeoutResp} + */ + public ServiceCall updateProxyReadTimeout(UpdateProxyReadTimeoutOptions updateProxyReadTimeoutOptions) { + boolean skipBody = false; + if (updateProxyReadTimeoutOptions == null) { + updateProxyReadTimeoutOptions = new UpdateProxyReadTimeoutOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/proxy_read_timeout", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateProxyReadTimeout"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateProxyReadTimeoutOptions.value() != null) { + contentJson.addProperty("value", updateProxyReadTimeoutOptions.value()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update proxy read timeout setting. + * + * Update proxy read timeout setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link ProxyReadTimeoutResp} + */ + public ServiceCall updateProxyReadTimeout() { + return updateProxyReadTimeout(null); + } + + /** + * Get browser check setting. + * + * Get browser check setting for a zone. + * + * @param getBrowserCheckOptions the {@link GetBrowserCheckOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link BrowserCheckResp} + */ + public ServiceCall getBrowserCheck(GetBrowserCheckOptions getBrowserCheckOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/browser_check", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getBrowserCheck"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get browser check setting. + * + * Get browser check setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link BrowserCheckResp} */ public ServiceCall getBrowserCheck() { return getBrowserCheck(null); @@ -2298,9 +2622,10 @@ public ServiceCall updateBrowserCheck(UpdateBrowserCheckOption updateBrowserCheckOptions = new UpdateBrowserCheckOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/browser_check" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/browser_check", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateBrowserCheck"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2338,9 +2663,10 @@ public ServiceCall updateBrowserCheck() { * @return a {@link ServiceCall} with a result of type {@link OriginErrorPagePassThruResp} */ public ServiceCall getEnableErrorPagesOn(GetEnableErrorPagesOnOptions getEnableErrorPagesOnOptions) { - String[] pathSegments = { "v1", "zones", "settings/origin_error_page_pass_thru" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/origin_error_page_pass_thru", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getEnableErrorPagesOn"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2376,9 +2702,10 @@ public ServiceCall updateEnableErrorPagesOn(UpdateE updateEnableErrorPagesOnOptions = new UpdateEnableErrorPagesOnOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/origin_error_page_pass_thru" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/origin_error_page_pass_thru", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateEnableErrorPagesOn"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2416,9 +2743,10 @@ public ServiceCall updateEnableErrorPagesOn() { * @return a {@link ServiceCall} with a result of type {@link WafResp} */ public ServiceCall getWebApplicationFirewall(GetWebApplicationFirewallOptions getWebApplicationFirewallOptions) { - String[] pathSegments = { "v1", "zones", "settings/waf" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/waf", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getWebApplicationFirewall"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2454,9 +2782,10 @@ public ServiceCall updateWebApplicationFirewall(UpdateWebApplicationFir updateWebApplicationFirewallOptions = new UpdateWebApplicationFirewallOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/waf" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/waf", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateWebApplicationFirewall"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2494,9 +2823,10 @@ public ServiceCall updateWebApplicationFirewall() { * @return a {@link ServiceCall} with a result of type {@link CiphersResp} */ public ServiceCall getCiphers(GetCiphersOptions getCiphersOptions) { - String[] pathSegments = { "v1", "zones", "settings/ciphers" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/ciphers", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getCiphers"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2532,9 +2862,10 @@ public ServiceCall updateCiphers(UpdateCiphersOptions updateCiphers updateCiphersOptions = new UpdateCiphersOptions.Builder().build(); skipBody = true; } - String[] pathSegments = { "v1", "zones", "settings/ciphers" }; - String[] pathParameters = { this.crn, this.zoneIdentifier }; - RequestBuilder builder = RequestBuilder.patch(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/ciphers", pathParamsMap)); Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateCiphers"); for (Entry header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); @@ -2563,4 +2894,469 @@ public ServiceCall updateCiphers() { return updateCiphers(null); } + /** + * Get origin max http version setting. + * + * Get origin max http version setting for a zone. + * + * @param getOriginMaxHttpVersionOptions the {@link GetOriginMaxHttpVersionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link OriginMaxHttpVersionResp} + */ + public ServiceCall getOriginMaxHttpVersion(GetOriginMaxHttpVersionOptions getOriginMaxHttpVersionOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/origin_max_http_version", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getOriginMaxHttpVersion"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get origin max http version setting. + * + * Get origin max http version setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link OriginMaxHttpVersionResp} + */ + public ServiceCall getOriginMaxHttpVersion() { + return getOriginMaxHttpVersion(null); + } + + /** + * Update origin max http version setting. + * + * Update origin max http version setting for a zone. + * + * @param updateOriginMaxHttpVersionOptions the {@link UpdateOriginMaxHttpVersionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link OriginMaxHttpVersionResp} + */ + public ServiceCall updateOriginMaxHttpVersion(UpdateOriginMaxHttpVersionOptions updateOriginMaxHttpVersionOptions) { + boolean skipBody = false; + if (updateOriginMaxHttpVersionOptions == null) { + updateOriginMaxHttpVersionOptions = new UpdateOriginMaxHttpVersionOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/origin_max_http_version", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateOriginMaxHttpVersion"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateOriginMaxHttpVersionOptions.value() != null) { + contentJson.addProperty("value", updateOriginMaxHttpVersionOptions.value()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update origin max http version setting. + * + * Update origin max http version setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link OriginMaxHttpVersionResp} + */ + public ServiceCall updateOriginMaxHttpVersion() { + return updateOriginMaxHttpVersion(null); + } + + /** + * Get origin post quantum encryption setting. + * + * Get origin post quantum encryption setting for a zone. + * + * @param getOriginPostQuantumEncryptionOptions the {@link GetOriginPostQuantumEncryptionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link OriginPostQuantumEncryptionResp} + */ + public ServiceCall getOriginPostQuantumEncryption(GetOriginPostQuantumEncryptionOptions getOriginPostQuantumEncryptionOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/cache/origin_post_quantum_encryption", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getOriginPostQuantumEncryption"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get origin post quantum encryption setting. + * + * Get origin post quantum encryption setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link OriginPostQuantumEncryptionResp} + */ + public ServiceCall getOriginPostQuantumEncryption() { + return getOriginPostQuantumEncryption(null); + } + + /** + * Update origin post quantum encryption setting. + * + * Update origin post quantum encryption setting for a zone. + * + * @param updateOriginPostQuantumEncryptionOptions the {@link UpdateOriginPostQuantumEncryptionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link OriginPostQuantumEncryptionResp} + */ + public ServiceCall updateOriginPostQuantumEncryption(UpdateOriginPostQuantumEncryptionOptions updateOriginPostQuantumEncryptionOptions) { + boolean skipBody = false; + if (updateOriginPostQuantumEncryptionOptions == null) { + updateOriginPostQuantumEncryptionOptions = new UpdateOriginPostQuantumEncryptionOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.put(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/cache/origin_post_quantum_encryption", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateOriginPostQuantumEncryption"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateOriginPostQuantumEncryptionOptions.value() != null) { + contentJson.addProperty("value", updateOriginPostQuantumEncryptionOptions.value()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update origin post quantum encryption setting. + * + * Update origin post quantum encryption setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link OriginPostQuantumEncryptionResp} + */ + public ServiceCall updateOriginPostQuantumEncryption() { + return updateOriginPostQuantumEncryption(null); + } + + /** + * Retrieves the current setting for log retention. + * + * Get the current setting for log retention. This setting is available for Enterprise plans only. If this setting is + * turned on, then logs from the cloud edge are retained for the customers domain. Otherwise they will be discarded. + * + * @param getLogRetentionOptions the {@link GetLogRetentionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link LogRetentionResp} + */ + public ServiceCall getLogRetention(GetLogRetentionOptions getLogRetentionOptions) { + com.ibm.cloud.sdk.core.util.Validator.notNull(getLogRetentionOptions, + "getLogRetentionOptions cannot be null"); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", getLogRetentionOptions.crn()); + pathParamsMap.put("zone_identifier", getLogRetentionOptions.zoneIdentifier()); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/logs/retention", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getLogRetention"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Toggles the current setting for log retention. + * + * Toggles the current setting for log retention. + * + * @param updateLogRetentionOptions the {@link UpdateLogRetentionOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link LogRetentionResp} + */ + public ServiceCall updateLogRetention(UpdateLogRetentionOptions updateLogRetentionOptions) { + com.ibm.cloud.sdk.core.util.Validator.notNull(updateLogRetentionOptions, + "updateLogRetentionOptions cannot be null"); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", updateLogRetentionOptions.crn()); + pathParamsMap.put("zone_identifier", updateLogRetentionOptions.zoneIdentifier()); + RequestBuilder builder = RequestBuilder.post(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/logs/retention", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateLogRetention"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + final JsonObject contentJson = new JsonObject(); + if (updateLogRetentionOptions.flag() != null) { + contentJson.addProperty("flag", updateLogRetentionOptions.flag()); + } + builder.bodyJson(contentJson); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get Bot management settings. + * + * Get Bot management settings for a given zone. + * + * @param getBotManagementOptions the {@link GetBotManagementOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link BotMgtResp} + */ + public ServiceCall getBotManagement(GetBotManagementOptions getBotManagementOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/bot_management", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getBotManagement"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get Bot management settings. + * + * Get Bot management settings for a given zone. + * + * @return a {@link ServiceCall} with a result of type {@link BotMgtResp} + */ + public ServiceCall getBotManagement() { + return getBotManagement(null); + } + + /** + * Update Bot management settings. + * + * Update Bot management settings for given zone. + * + * @param updateBotManagementOptions the {@link UpdateBotManagementOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link BotMgtResp} + */ + public ServiceCall updateBotManagement(UpdateBotManagementOptions updateBotManagementOptions) { + boolean skipBody = false; + if (updateBotManagementOptions == null) { + updateBotManagementOptions = new UpdateBotManagementOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.put(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/bot_management", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateBotManagement"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateBotManagementOptions.sessionScore() != null) { + contentJson.addProperty("session_score", updateBotManagementOptions.sessionScore()); + } + if (updateBotManagementOptions.enableJs() != null) { + contentJson.addProperty("enable_js", updateBotManagementOptions.enableJs()); + } + if (updateBotManagementOptions.useLatestModel() != null) { + contentJson.addProperty("use_latest_model", updateBotManagementOptions.useLatestModel()); + } + if (updateBotManagementOptions.aiBotsProtection() != null) { + contentJson.addProperty("ai_bots_protection", updateBotManagementOptions.aiBotsProtection()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update Bot management settings. + * + * Update Bot management settings for given zone. + * + * @return a {@link ServiceCall} with a result of type {@link BotMgtResp} + */ + public ServiceCall updateBotManagement() { + return updateBotManagement(null); + } + + /** + * Get replace insecure Javascript setting. + * + * Get replace insecure Javascript for a zone. + * + * @param getReplaceInsecureJsOptions the {@link GetReplaceInsecureJsOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link ReplaceInsecureJsResp} + */ + public ServiceCall getReplaceInsecureJs(GetReplaceInsecureJsOptions getReplaceInsecureJsOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/replace_insecure_js", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getReplaceInsecureJs"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get replace insecure Javascript setting. + * + * Get replace insecure Javascript for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link ReplaceInsecureJsResp} + */ + public ServiceCall getReplaceInsecureJs() { + return getReplaceInsecureJs(null); + } + + /** + * Update replace insecure Javascript setting. + * + * Update replace insecure Javascript setting for a zone. + * + * @param updateReplaceInsecureJsOptions the {@link UpdateReplaceInsecureJsOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link ReplaceInsecureJsResp} + */ + public ServiceCall updateReplaceInsecureJs(UpdateReplaceInsecureJsOptions updateReplaceInsecureJsOptions) { + boolean skipBody = false; + if (updateReplaceInsecureJsOptions == null) { + updateReplaceInsecureJsOptions = new UpdateReplaceInsecureJsOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/replace_insecure_js", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateReplaceInsecureJs"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateReplaceInsecureJsOptions.value() != null) { + contentJson.addProperty("value", updateReplaceInsecureJsOptions.value()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update replace insecure Javascript setting. + * + * Update replace insecure Javascript setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link ReplaceInsecureJsResp} + */ + public ServiceCall updateReplaceInsecureJs() { + return updateReplaceInsecureJs(null); + } + + /** + * Get email address obfuscation setting. + * + * Get email address obfuscation for a zone. + * + * @param getEmailObfuscationOptions the {@link GetEmailObfuscationOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link EmailObfuscationResp} + */ + public ServiceCall getEmailObfuscation(GetEmailObfuscationOptions getEmailObfuscationOptions) { + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/email_obfuscation", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "getEmailObfuscation"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Get email address obfuscation setting. + * + * Get email address obfuscation for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link EmailObfuscationResp} + */ + public ServiceCall getEmailObfuscation() { + return getEmailObfuscation(null); + } + + /** + * Update email address obfuscation setting. + * + * Update email address obfuscation setting for a zone. + * + * @param updateEmailObfuscationOptions the {@link UpdateEmailObfuscationOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link EmailObfuscationResp} + */ + public ServiceCall updateEmailObfuscation(UpdateEmailObfuscationOptions updateEmailObfuscationOptions) { + boolean skipBody = false; + if (updateEmailObfuscationOptions == null) { + updateEmailObfuscationOptions = new UpdateEmailObfuscationOptions.Builder().build(); + skipBody = true; + } + Map pathParamsMap = new HashMap(); + pathParamsMap.put("crn", this.crn); + pathParamsMap.put("zone_identifier", this.zoneIdentifier); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v1/{crn}/zones/{zone_identifier}/settings/email_obfuscation", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("zones_settings", "v1", "updateEmailObfuscation"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + if (!skipBody) { + final JsonObject contentJson = new JsonObject(); + if (updateEmailObfuscationOptions.value() != null) { + contentJson.addProperty("value", updateEmailObfuscationOptions.value()); + } + builder.bodyJson(contentJson); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Update email address obfuscation setting. + * + * Update email address obfuscation setting for a zone. + * + * @return a {@link ServiceCall} with a result of type {@link EmailObfuscationResp} + */ + public ServiceCall updateEmailObfuscation() { + return updateEmailObfuscation(null); + } + } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsResp.java index 8146939d6..db54c7d33 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class AlwaysUseHttpsResp extends GenericModel { protected List> errors; protected List> messages; + protected AlwaysUseHttpsResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResult.java index 7db0f40a8..44ae4556d 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class AlwaysUseHttpsRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected AlwaysUseHttpsRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesResp.java index 5ade5987c..62cbcf310 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class AutomaticHttpsRewritesResp extends GenericModel { protected List> errors; protected List> messages; + protected AutomaticHttpsRewritesResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResult.java index 57a3da20e..f8b2766fc 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class AutomaticHttpsRewritesRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected AutomaticHttpsRewritesRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtResp.java new file mode 100644 index 000000000..800c5bf97 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Bot Management Response. + */ +public class BotMgtResp extends GenericModel { + + protected Boolean success; + protected List> errors; + protected List> messages; + protected BotMgtSettings result; + + protected BotMgtResp() { } + + /** + * Gets the success. + * + * Was operation successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } + + /** + * Gets the result. + * + * Bot Management settings. + * + * @return the result + */ + public BotMgtSettings getResult() { + return result; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtSettings.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtSettings.java new file mode 100644 index 000000000..4252c77d6 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtSettings.java @@ -0,0 +1,186 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Bot Management settings. + */ +public class BotMgtSettings extends GenericModel { + + /** + * Block scrapers and crawlers known to be feeding AI training data. + */ + public interface AiBotsProtection { + /** block. */ + String BLOCK = "block"; + /** disabled. */ + String DISABLED = "disabled"; + } + + @SerializedName("session_score") + protected Boolean sessionScore; + @SerializedName("enable_js") + protected Boolean enableJs; + @SerializedName("use_latest_model") + protected Boolean useLatestModel; + @SerializedName("ai_bots_protection") + protected String aiBotsProtection; + + /** + * Builder. + */ + public static class Builder { + private Boolean sessionScore; + private Boolean enableJs; + private Boolean useLatestModel; + private String aiBotsProtection; + + /** + * Instantiates a new Builder from an existing BotMgtSettings instance. + * + * @param botMgtSettings the instance to initialize the Builder with + */ + private Builder(BotMgtSettings botMgtSettings) { + this.sessionScore = botMgtSettings.sessionScore; + this.enableJs = botMgtSettings.enableJs; + this.useLatestModel = botMgtSettings.useLatestModel; + this.aiBotsProtection = botMgtSettings.aiBotsProtection; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a BotMgtSettings. + * + * @return the new BotMgtSettings instance + */ + public BotMgtSettings build() { + return new BotMgtSettings(this); + } + + /** + * Set the sessionScore. + * + * @param sessionScore the sessionScore + * @return the BotMgtSettings builder + */ + public Builder sessionScore(Boolean sessionScore) { + this.sessionScore = sessionScore; + return this; + } + + /** + * Set the enableJs. + * + * @param enableJs the enableJs + * @return the BotMgtSettings builder + */ + public Builder enableJs(Boolean enableJs) { + this.enableJs = enableJs; + return this; + } + + /** + * Set the useLatestModel. + * + * @param useLatestModel the useLatestModel + * @return the BotMgtSettings builder + */ + public Builder useLatestModel(Boolean useLatestModel) { + this.useLatestModel = useLatestModel; + return this; + } + + /** + * Set the aiBotsProtection. + * + * @param aiBotsProtection the aiBotsProtection + * @return the BotMgtSettings builder + */ + public Builder aiBotsProtection(String aiBotsProtection) { + this.aiBotsProtection = aiBotsProtection; + return this; + } + } + + protected BotMgtSettings() { } + + protected BotMgtSettings(Builder builder) { + sessionScore = builder.sessionScore; + enableJs = builder.enableJs; + useLatestModel = builder.useLatestModel; + aiBotsProtection = builder.aiBotsProtection; + } + + /** + * New builder. + * + * @return a BotMgtSettings builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the sessionScore. + * + * Set to disable tracking the max bot score during a session using the Bot Management cookie. + * + * @return the sessionScore + */ + public Boolean sessionScore() { + return sessionScore; + } + + /** + * Gets the enableJs. + * + * Use JavaScript detections to improve bot detection. + * + * @return the enableJs + */ + public Boolean enableJs() { + return enableJs; + } + + /** + * Gets the useLatestModel. + * + * Automatically update to the newest bot detection models as they are released. + * + * @return the useLatestModel + */ + public Boolean useLatestModel() { + return useLatestModel; + } + + /** + * Gets the aiBotsProtection. + * + * Block scrapers and crawlers known to be feeding AI training data. + * + * @return the aiBotsProtection + */ + public String aiBotsProtection() { + return aiBotsProtection; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliResp.java new file mode 100644 index 000000000..ec28c846c --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Brotli response. + */ +public class BrotliResp extends GenericModel { + + protected BrotliRespResult result; + protected Boolean success; + protected List> errors; + protected List> messages; + + protected BrotliResp() { } + + /** + * Gets the result. + * + * Container for response information. + * + * @return the result + */ + public BrotliRespResult getResult() { + return result; + } + + /** + * Gets the success. + * + * Was the get successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespResult.java new file mode 100644 index 000000000..91ec08fd5 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespResult.java @@ -0,0 +1,78 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Container for response information. + */ +public class BrotliRespResult extends GenericModel { + + protected String id; + protected String value; + protected Boolean editable; + @SerializedName("modified_on") + protected Date modifiedOn; + + protected BrotliRespResult() { } + + /** + * Gets the id. + * + * ID. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** + * Gets the editable. + * + * Editable. + * + * @return the editable + */ + public Boolean isEditable() { + return editable; + } + + /** + * Gets the modifiedOn. + * + * Modified date. + * + * @return the modifiedOn + */ + public Date getModifiedOn() { + return modifiedOn; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckResp.java index 4282c0f63..63f1264f8 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class BrowserCheckResp extends GenericModel { protected List> errors; protected List> messages; + protected BrowserCheckResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResult.java index f8bed990e..ce24f212c 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class BrowserCheckRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected BrowserCheckRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlResp.java index 2ca5154db..50492bf7f 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ChallengeTtlResp extends GenericModel { protected List> errors; protected List> messages; + protected ChallengeTtlResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResult.java index 0853179c9..0b67ed2bc 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class ChallengeTtlRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected ChallengeTtlRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersResp.java index 7d9125888..7115d5c22 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class CiphersResp extends GenericModel { protected List> errors; protected List> messages; + protected CiphersResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResult.java index d21dc13f5..646ac765d 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -29,6 +30,8 @@ public class CiphersRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected CiphersRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponse.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponse.java index da7c9a4c4..4ab999c6d 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponse.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponse.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -38,6 +39,8 @@ public interface Value { protected Date modifiedOn; protected Boolean editable; + protected CnameFlatteningResponse() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationResp.java new file mode 100644 index 000000000..3495982a1 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * email address obfuscation response. + */ +public class EmailObfuscationResp extends GenericModel { + + protected EmailObfuscationRespResult result; + protected Boolean success; + protected List> errors; + protected List> messages; + + protected EmailObfuscationResp() { } + + /** + * Gets the result. + * + * Container for response information. + * + * @return the result + */ + public EmailObfuscationRespResult getResult() { + return result; + } + + /** + * Gets the success. + * + * Was the get successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespResult.java new file mode 100644 index 000000000..56129291b --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespResult.java @@ -0,0 +1,78 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Container for response information. + */ +public class EmailObfuscationRespResult extends GenericModel { + + protected String id; + protected String value; + protected Boolean editable; + @SerializedName("modified_on") + protected Date modifiedOn; + + protected EmailObfuscationRespResult() { } + + /** + * Gets the id. + * + * ID. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** + * Gets the editable. + * + * Editable. + * + * @return the editable + */ + public Boolean isEditable() { + return editable; + } + + /** + * Gets the modifiedOn. + * + * Modified date. + * + * @return the modifiedOn + */ + public Date getModifiedOn() { + return modifiedOn; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptions.java index 358d588dd..96747537a 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetAlwaysUseHttpsOptions extends GenericModel { + /** + * Construct a new instance of GetAlwaysUseHttpsOptions. + */ + public GetAlwaysUseHttpsOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptions.java index d28642724..1fa13c063 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetAutomaticHttpsRewritesOptions extends GenericModel { + /** + * Construct a new instance of GetAutomaticHttpsRewritesOptions. + */ + public GetAutomaticHttpsRewritesOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBotManagementOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBotManagementOptions.java new file mode 100644 index 000000000..2449febf4 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBotManagementOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getBotManagement options. + */ +public class GetBotManagementOptions extends GenericModel { + + /** + * Construct a new instance of GetBotManagementOptions. + */ + public GetBotManagementOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrotliOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrotliOptions.java new file mode 100644 index 000000000..b331e3df7 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrotliOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getBrotli options. + */ +public class GetBrotliOptions extends GenericModel { + + /** + * Construct a new instance of GetBrotliOptions. + */ + public GetBrotliOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptions.java index 0cd8f79cd..e3523cc1f 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetBrowserCheckOptions extends GenericModel { + /** + * Construct a new instance of GetBrowserCheckOptions. + */ + public GetBrowserCheckOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptions.java index a2db34228..2e8110610 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetChallengeTtlOptions extends GenericModel { + /** + * Construct a new instance of GetChallengeTtlOptions. + */ + public GetChallengeTtlOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptions.java index 6efa1a460..c59e0aac4 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetCiphersOptions extends GenericModel { + /** + * Construct a new instance of GetCiphersOptions. + */ + public GetCiphersOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEmailObfuscationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEmailObfuscationOptions.java new file mode 100644 index 000000000..9d141ef8a --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEmailObfuscationOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getEmailObfuscation options. + */ +public class GetEmailObfuscationOptions extends GenericModel { + + /** + * Construct a new instance of GetEmailObfuscationOptions. + */ + public GetEmailObfuscationOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptions.java index 523c800cd..c415c610e 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetEnableErrorPagesOnOptions extends GenericModel { + /** + * Construct a new instance of GetEnableErrorPagesOnOptions. + */ + public GetEnableErrorPagesOnOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptions.java index ae2973342..49725de9e 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetHotlinkProtectionOptions extends GenericModel { + /** + * Construct a new instance of GetHotlinkProtectionOptions. + */ + public GetHotlinkProtectionOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2Options.java index 4644a8c22..585d48201 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetHttp2Options extends GenericModel { + /** + * Construct a new instance of GetHttp2Options. + */ + public GetHttp2Options() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3Options.java index 87633ad99..7aa874de8 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetHttp3Options extends GenericModel { + /** + * Construct a new instance of GetHttp3Options. + */ + public GetHttp3Options() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptions.java index 3444f9268..d7e5a83c3 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetImageLoadOptimizationOptions extends GenericModel { + /** + * Construct a new instance of GetImageLoadOptimizationOptions. + */ + public GetImageLoadOptimizationOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptions.java index d8b56f88c..bdb4e1bc4 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetImageSizeOptimizationOptions extends GenericModel { + /** + * Construct a new instance of GetImageSizeOptimizationOptions. + */ + public GetImageSizeOptimizationOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptions.java index 170bb03d2..9acdafc72 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetIpGeolocationOptions extends GenericModel { + /** + * Construct a new instance of GetIpGeolocationOptions. + */ + public GetIpGeolocationOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6Options.java index cbc77f46f..163516975 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetIpv6Options extends GenericModel { + /** + * Construct a new instance of GetIpv6Options. + */ + public GetIpv6Options() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetLogRetentionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetLogRetentionOptions.java new file mode 100644 index 000000000..ffd7733b7 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetLogRetentionOptions.java @@ -0,0 +1,134 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getLogRetention options. + */ +public class GetLogRetentionOptions extends GenericModel { + + protected String crn; + protected String zoneIdentifier; + + /** + * Builder. + */ + public static class Builder { + private String crn; + private String zoneIdentifier; + + /** + * Instantiates a new Builder from an existing GetLogRetentionOptions instance. + * + * @param getLogRetentionOptions the instance to initialize the Builder with + */ + private Builder(GetLogRetentionOptions getLogRetentionOptions) { + this.crn = getLogRetentionOptions.crn; + this.zoneIdentifier = getLogRetentionOptions.zoneIdentifier; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Instantiates a new builder with required properties. + * + * @param crn the crn + * @param zoneIdentifier the zoneIdentifier + */ + public Builder(String crn, String zoneIdentifier) { + this.crn = crn; + this.zoneIdentifier = zoneIdentifier; + } + + /** + * Builds a GetLogRetentionOptions. + * + * @return the new GetLogRetentionOptions instance + */ + public GetLogRetentionOptions build() { + return new GetLogRetentionOptions(this); + } + + /** + * Set the crn. + * + * @param crn the crn + * @return the GetLogRetentionOptions builder + */ + public Builder crn(String crn) { + this.crn = crn; + return this; + } + + /** + * Set the zoneIdentifier. + * + * @param zoneIdentifier the zoneIdentifier + * @return the GetLogRetentionOptions builder + */ + public Builder zoneIdentifier(String zoneIdentifier) { + this.zoneIdentifier = zoneIdentifier; + return this; + } + } + + protected GetLogRetentionOptions() { } + + protected GetLogRetentionOptions(Builder builder) { + com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.crn, + "crn cannot be empty"); + com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.zoneIdentifier, + "zoneIdentifier cannot be empty"); + crn = builder.crn; + zoneIdentifier = builder.zoneIdentifier; + } + + /** + * New builder. + * + * @return a GetLogRetentionOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the crn. + * + * Full url-encoded cloud resource name (CRN) of resource instance. + * + * @return the crn + */ + public String crn() { + return crn; + } + + /** + * Gets the zoneIdentifier. + * + * Zone identifier. + * + * @return the zoneIdentifier + */ + public String zoneIdentifier() { + return zoneIdentifier; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptions.java index 3684614f7..b72663dca 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetMaxUploadOptions extends GenericModel { + /** + * Construct a new instance of GetMaxUploadOptions. + */ + public GetMaxUploadOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptions.java index 24405a159..dcee87610 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetMinTlsVersionOptions extends GenericModel { + /** + * Construct a new instance of GetMinTlsVersionOptions. + */ + public GetMinTlsVersionOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptions.java index a0a2c142d..1bd89043f 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetMinifyOptions extends GenericModel { + /** + * Construct a new instance of GetMinifyOptions. + */ + public GetMinifyOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptions.java index 492787ff5..db9660631 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetMobileRedirectOptions extends GenericModel { + /** + * Construct a new instance of GetMobileRedirectOptions. + */ + public GetMobileRedirectOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptions.java index 0b59411be..206414ab5 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetOpportunisticEncryptionOptions extends GenericModel { + /** + * Construct a new instance of GetOpportunisticEncryptionOptions. + */ + public GetOpportunisticEncryptionOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticOnionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticOnionOptions.java new file mode 100644 index 000000000..d6e714dfc --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticOnionOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getOpportunisticOnion options. + */ +public class GetOpportunisticOnionOptions extends GenericModel { + + /** + * Construct a new instance of GetOpportunisticOnionOptions. + */ + public GetOpportunisticOnionOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginMaxHttpVersionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginMaxHttpVersionOptions.java new file mode 100644 index 000000000..7d04e3540 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginMaxHttpVersionOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getOriginMaxHttpVersion options. + */ +public class GetOriginMaxHttpVersionOptions extends GenericModel { + + /** + * Construct a new instance of GetOriginMaxHttpVersionOptions. + */ + public GetOriginMaxHttpVersionOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginPostQuantumEncryptionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginPostQuantumEncryptionOptions.java new file mode 100644 index 000000000..2ed69cf1d --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginPostQuantumEncryptionOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getOriginPostQuantumEncryption options. + */ +public class GetOriginPostQuantumEncryptionOptions extends GenericModel { + + /** + * Construct a new instance of GetOriginPostQuantumEncryptionOptions. + */ + public GetOriginPostQuantumEncryptionOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptions.java index c3e87baa1..e1f6031fa 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetPrefetchPreloadOptions extends GenericModel { + /** + * Construct a new instance of GetPrefetchPreloadOptions. + */ + public GetPrefetchPreloadOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetProxyReadTimeoutOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetProxyReadTimeoutOptions.java new file mode 100644 index 000000000..a9a73b3ad --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetProxyReadTimeoutOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getProxyReadTimeout options. + */ +public class GetProxyReadTimeoutOptions extends GenericModel { + + /** + * Construct a new instance of GetProxyReadTimeoutOptions. + */ + public GetProxyReadTimeoutOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4Options.java index 91a7b0a22..05dbc2245 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetPseudoIpv4Options extends GenericModel { + /** + * Construct a new instance of GetPseudoIpv4Options. + */ + public GetPseudoIpv4Options() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetReplaceInsecureJsOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetReplaceInsecureJsOptions.java new file mode 100644 index 000000000..4022ccd5e --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetReplaceInsecureJsOptions.java @@ -0,0 +1,29 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getReplaceInsecureJs options. + */ +public class GetReplaceInsecureJsOptions extends GenericModel { + + /** + * Construct a new instance of GetReplaceInsecureJsOptions. + */ + public GetReplaceInsecureJsOptions() { + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptions.java index e59639124..9b0704c21 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetResponseBufferingOptions extends GenericModel { + /** + * Construct a new instance of GetResponseBufferingOptions. + */ + public GetResponseBufferingOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptions.java index 172c2173c..8eb40aac8 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetScriptLoadOptimizationOptions extends GenericModel { + /** + * Construct a new instance of GetScriptLoadOptimizationOptions. + */ + public GetScriptLoadOptimizationOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptions.java index 65bb4b6b1..5ffc8efe6 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetSecurityHeaderOptions extends GenericModel { + /** + * Construct a new instance of GetSecurityHeaderOptions. + */ + public GetSecurityHeaderOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptions.java index 5a666c2a4..ba1f1ecfb 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetServerSideExcludeOptions extends GenericModel { + /** + * Construct a new instance of GetServerSideExcludeOptions. + */ + public GetServerSideExcludeOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptions.java index 46abbc207..7d1a646f9 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetTlsClientAuthOptions extends GenericModel { + /** + * Construct a new instance of GetTlsClientAuthOptions. + */ + public GetTlsClientAuthOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptions.java index fac13b223..7668fe639 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetTrueClientIpOptions extends GenericModel { + /** + * Construct a new instance of GetTrueClientIpOptions. + */ + public GetTrueClientIpOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptions.java index d2adc3d31..626a88016 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetWebApplicationFirewallOptions extends GenericModel { + /** + * Construct a new instance of GetWebApplicationFirewallOptions. + */ + public GetWebApplicationFirewallOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptions.java index 3edbe172a..620f386ac 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetWebSocketsOptions extends GenericModel { + /** + * Construct a new instance of GetWebSocketsOptions. + */ + public GetWebSocketsOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptions.java index 1f4379386..ce6554b55 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetZoneCnameFlatteningOptions extends GenericModel { + /** + * Construct a new instance of GetZoneCnameFlatteningOptions. + */ + public GetZoneCnameFlatteningOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptions.java index 56bd7e5e6..2840e7efc 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -19,5 +20,10 @@ */ public class GetZoneDnssecOptions extends GenericModel { + /** + * Construct a new instance of GetZoneDnssecOptions. + */ + public GetZoneDnssecOptions() { + } } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionResp.java index c5085dbbf..9cc220177 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class HotlinkProtectionResp extends GenericModel { protected List> errors; protected List> messages; + protected HotlinkProtectionResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResult.java index 884fa275b..05ab01271 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class HotlinkProtectionRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected HotlinkProtectionRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2Resp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2Resp.java index f2c49dd98..af5bd7bcb 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2Resp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2Resp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class Http2Resp extends GenericModel { protected List> errors; protected List> messages; + protected Http2Resp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResult.java index 33f8d8cc8..6a7ab5832 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class Http2RespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected Http2RespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3Resp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3Resp.java index 7d3bfa97c..8a7747ac9 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3Resp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3Resp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class Http3Resp extends GenericModel { protected List> errors; protected List> messages; + protected Http3Resp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResult.java index 8a791a47a..962fb4138 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class Http3RespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected Http3RespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationResp.java index a417a7310..4c85c1b4f 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ImageLoadOptimizationResp extends GenericModel { protected List> errors; protected List> messages; + protected ImageLoadOptimizationResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResult.java index eb5fce707..e79143a55 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class ImageLoadOptimizationRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected ImageLoadOptimizationRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationResp.java index c4e247ff5..55578bbdd 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ImageSizeOptimizationResp extends GenericModel { protected List> errors; protected List> messages; + protected ImageSizeOptimizationResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResult.java index 8892a83d1..ebe342585 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class ImageSizeOptimizationRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected ImageSizeOptimizationRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationResp.java index 8c6ece813..12bff9945 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class IpGeolocationResp extends GenericModel { protected List> errors; protected List> messages; + protected IpGeolocationResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResult.java index 50f5bdabc..13b1694fa 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class IpGeolocationRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected IpGeolocationRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6Resp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6Resp.java index 848296979..2de3a48d0 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6Resp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6Resp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class Ipv6Resp extends GenericModel { protected List> errors; protected List> messages; + protected Ipv6Resp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResult.java index 54d65e5df..209131311 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class Ipv6RespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected Ipv6RespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionResp.java new file mode 100644 index 000000000..b4f01ae8a --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionResp.java @@ -0,0 +1,74 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Schema for the response to a GET call for the log retention setting. + */ +public class LogRetentionResp extends GenericModel { + + protected Boolean success; + protected LogRetentionRespResult result; + protected List errors; + protected List messages; + + protected LogRetentionResp() { } + + /** + * Gets the success. + * + * Boolean flag indicating whether hte API call was successful in retrieving the requested data. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the result. + * + * @return the result + */ + public LogRetentionRespResult getResult() { + return result; + } + + /** + * Gets the errors. + * + * Array of errors messages. + * + * @return the errors + */ + public List getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of additional messages. + * + * @return the messages + */ + public List getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespResult.java new file mode 100644 index 000000000..5f7d6beba --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespResult.java @@ -0,0 +1,38 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * LogRetentionRespResult. + */ +public class LogRetentionRespResult extends GenericModel { + + protected Boolean flag; + + protected LogRetentionRespResult() { } + + /** + * Gets the flag. + * + * Boolean flag indicating whether or not log retention is turned on or off. + * + * @return the flag + */ + public Boolean isFlag() { + return flag; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadResp.java index 0c48fca95..60dcfaf3f 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class MaxUploadResp extends GenericModel { protected List> errors; protected List> messages; + protected MaxUploadResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResult.java index 9521c1173..6728917f9 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class MaxUploadRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected MaxUploadRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionResp.java index 81362030c..16c30bf99 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class MinTlsVersionResp extends GenericModel { protected List> errors; protected List> messages; + protected MinTlsVersionResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResult.java index 4aa393e7e..41171339d 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class MinTlsVersionRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected MinTlsVersionRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyResp.java index 802228739..0b776849c 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class MinifyResp extends GenericModel { protected List> errors; protected List> messages; + protected MinifyResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResult.java index 79fdc46f9..56642e4b5 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class MinifyRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected MinifyRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValue.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValue.java index a76a436b7..3eb84cc7a 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValue.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValue.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -23,6 +24,8 @@ public class MinifyRespResultValue extends GenericModel { protected String html; protected String js; + protected MinifyRespResultValue() { } + /** * Gets the css. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValue.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValue.java index dd3730813..c60ee620c 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValue.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValue.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -61,6 +62,11 @@ public static class Builder { private String html; private String js; + /** + * Instantiates a new Builder from an existing MinifySettingValue instance. + * + * @param minifySettingValue the instance to initialize the Builder with + */ private Builder(MinifySettingValue minifySettingValue) { this.css = minifySettingValue.css; this.html = minifySettingValue.html; @@ -129,6 +135,8 @@ public Builder js(String js) { } } + protected MinifySettingValue() { } + protected MinifySettingValue(Builder builder) { com.ibm.cloud.sdk.core.util.Validator.notNull(builder.css, "css cannot be null"); diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValue.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValue.java index e9e9960f4..759bec9d6 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValue.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValue.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.google.gson.annotations.SerializedName; @@ -44,6 +45,11 @@ public static class Builder { private String mobileSubdomain; private Boolean stripUri; + /** + * Instantiates a new Builder from an existing MobileRedirecSettingValue instance. + * + * @param mobileRedirecSettingValue the instance to initialize the Builder with + */ private Builder(MobileRedirecSettingValue mobileRedirecSettingValue) { this.status = mobileRedirecSettingValue.status; this.mobileSubdomain = mobileRedirecSettingValue.mobileSubdomain; @@ -112,6 +118,8 @@ public Builder stripUri(Boolean stripUri) { } } + protected MobileRedirecSettingValue() { } + protected MobileRedirecSettingValue(Builder builder) { com.ibm.cloud.sdk.core.util.Validator.notNull(builder.status, "status cannot be null"); diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectResp.java index 04d3bf8ee..b65108138 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class MobileRedirectResp extends GenericModel { protected List> errors; protected List> messages; + protected MobileRedirectResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResult.java index d7a7a8d96..ef72399ad 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class MobileRedirectRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected MobileRedirectRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValue.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValue.java index bf532cf46..230701c7b 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValue.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValue.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.google.gson.annotations.SerializedName; @@ -26,6 +27,8 @@ public class MobileRedirectRespResultValue extends GenericModel { @SerializedName("strip_uri") protected Boolean stripUri; + protected MobileRedirectRespResultValue() { } + /** * Gets the status. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionResp.java index 4200e546e..5668ab334 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -17,7 +18,7 @@ import com.ibm.cloud.sdk.core.service.model.GenericModel; /** - * Oppertunistic encryption response. + * Opportunistic encryption response. */ public class OpportunisticEncryptionResp extends GenericModel { @@ -26,6 +27,8 @@ public class OpportunisticEncryptionResp extends GenericModel { protected List> errors; protected List> messages; + protected OpportunisticEncryptionResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResult.java index 59785e4c4..09bb9f611 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class OpportunisticEncryptionRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected OpportunisticEncryptionRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionResp.java new file mode 100644 index 000000000..16361773d --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Opportunistic onion response. + */ +public class OpportunisticOnionResp extends GenericModel { + + protected OpportunisticOnionRespResult result; + protected Boolean success; + protected List> errors; + protected List> messages; + + protected OpportunisticOnionResp() { } + + /** + * Gets the result. + * + * Container for response information. + * + * @return the result + */ + public OpportunisticOnionRespResult getResult() { + return result; + } + + /** + * Gets the success. + * + * Was the get successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespResult.java new file mode 100644 index 000000000..1c6643923 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespResult.java @@ -0,0 +1,78 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Container for response information. + */ +public class OpportunisticOnionRespResult extends GenericModel { + + protected String id; + protected String value; + protected Boolean editable; + @SerializedName("modified_on") + protected Date modifiedOn; + + protected OpportunisticOnionRespResult() { } + + /** + * Gets the id. + * + * ID. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** + * Gets the editable. + * + * Editable. + * + * @return the editable + */ + public Boolean isEditable() { + return editable; + } + + /** + * Gets the modifiedOn. + * + * Modified date. + * + * @return the modifiedOn + */ + public Date getModifiedOn() { + return modifiedOn; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruResp.java index f4970ce74..8a9659463 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class OriginErrorPagePassThruResp extends GenericModel { protected List> errors; protected List> messages; + protected OriginErrorPagePassThruResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResult.java index 211bb88a6..75da6f45b 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class OriginErrorPagePassThruRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected OriginErrorPagePassThruRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionResp.java new file mode 100644 index 000000000..5ea8ec281 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Origin max http version response. + */ +public class OriginMaxHttpVersionResp extends GenericModel { + + protected OriginMaxHttpVersionRespResult result; + protected Boolean success; + protected List> errors; + protected List> messages; + + protected OriginMaxHttpVersionResp() { } + + /** + * Gets the result. + * + * Container for response information. + * + * @return the result + */ + public OriginMaxHttpVersionRespResult getResult() { + return result; + } + + /** + * Gets the success. + * + * Was the get successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespResult.java new file mode 100644 index 000000000..d375c472c --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespResult.java @@ -0,0 +1,78 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Container for response information. + */ +public class OriginMaxHttpVersionRespResult extends GenericModel { + + protected String id; + protected String value; + protected Boolean editable; + @SerializedName("modified_on") + protected Date modifiedOn; + + protected OriginMaxHttpVersionRespResult() { } + + /** + * Gets the id. + * + * ID. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** + * Gets the editable. + * + * Editable. + * + * @return the editable + */ + public Boolean isEditable() { + return editable; + } + + /** + * Gets the modifiedOn. + * + * Modified date. + * + * @return the modifiedOn + */ + public Date getModifiedOn() { + return modifiedOn; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionResp.java new file mode 100644 index 000000000..b2129a575 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Origin post quantum encryption response. + */ +public class OriginPostQuantumEncryptionResp extends GenericModel { + + protected OriginPostQuantumEncryptionRespResult result; + protected Boolean success; + protected List> errors; + protected List> messages; + + protected OriginPostQuantumEncryptionResp() { } + + /** + * Gets the result. + * + * Container for response information. + * + * @return the result + */ + public OriginPostQuantumEncryptionRespResult getResult() { + return result; + } + + /** + * Gets the success. + * + * Was the get successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespResult.java new file mode 100644 index 000000000..06d5071c2 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespResult.java @@ -0,0 +1,90 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Container for response information. + */ +public class OriginPostQuantumEncryptionRespResult extends GenericModel { + + /** + * Value. + */ + public interface Value { + /** preferred. */ + String PREFERRED = "preferred"; + /** supported. */ + String SUPPORTED = "supported"; + /** off. */ + String OFF = "off"; + } + + protected String id; + protected String value; + protected Boolean editable; + @SerializedName("modified_on") + protected Date modifiedOn; + + protected OriginPostQuantumEncryptionRespResult() { } + + /** + * Gets the id. + * + * ID. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** + * Gets the editable. + * + * Editable. + * + * @return the editable + */ + public Boolean isEditable() { + return editable; + } + + /** + * Gets the modifiedOn. + * + * Modified date. + * + * @return the modifiedOn + */ + public Date getModifiedOn() { + return modifiedOn; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadResp.java index 5cc18c549..0b7620fdb 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class PrefetchPreloadResp extends GenericModel { protected List> errors; protected List> messages; + protected PrefetchPreloadResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResult.java index 6b97ac2f6..369608445 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class PrefetchPreloadRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected PrefetchPreloadRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutResp.java new file mode 100644 index 000000000..33dd5e644 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Proxy read timeout response. + */ +public class ProxyReadTimeoutResp extends GenericModel { + + protected ProxyReadTimeoutRespResult result; + protected Boolean success; + protected List> errors; + protected List> messages; + + protected ProxyReadTimeoutResp() { } + + /** + * Gets the result. + * + * Container for response information. + * + * @return the result + */ + public ProxyReadTimeoutRespResult getResult() { + return result; + } + + /** + * Gets the success. + * + * Was the get successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespResult.java new file mode 100644 index 000000000..e8454fad0 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespResult.java @@ -0,0 +1,78 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Container for response information. + */ +public class ProxyReadTimeoutRespResult extends GenericModel { + + protected String id; + protected Double value; + protected Boolean editable; + @SerializedName("modified_on") + protected Date modifiedOn; + + protected ProxyReadTimeoutRespResult() { } + + /** + * Gets the id. + * + * ID. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public Double getValue() { + return value; + } + + /** + * Gets the editable. + * + * Editable. + * + * @return the editable + */ + public Boolean isEditable() { + return editable; + } + + /** + * Gets the modifiedOn. + * + * Modified date. + * + * @return the modifiedOn + */ + public Date getModifiedOn() { + return modifiedOn; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4Resp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4Resp.java index 8d63a3381..a5b066da4 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4Resp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4Resp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class PseudoIpv4Resp extends GenericModel { protected List> errors; protected List> messages; + protected PseudoIpv4Resp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResult.java index 11ac4eb02..ae79ba3aa 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class PseudoIpv4RespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected PseudoIpv4RespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsResp.java new file mode 100644 index 000000000..692f459a8 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsResp.java @@ -0,0 +1,76 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.List; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Replace insecure Javascript response. + */ +public class ReplaceInsecureJsResp extends GenericModel { + + protected ReplaceInsecureJsRespResult result; + protected Boolean success; + protected List> errors; + protected List> messages; + + protected ReplaceInsecureJsResp() { } + + /** + * Gets the result. + * + * Container for response information. + * + * @return the result + */ + public ReplaceInsecureJsRespResult getResult() { + return result; + } + + /** + * Gets the success. + * + * Was the get successful. + * + * @return the success + */ + public Boolean isSuccess() { + return success; + } + + /** + * Gets the errors. + * + * Array of errors encountered. + * + * @return the errors + */ + public List> getErrors() { + return errors; + } + + /** + * Gets the messages. + * + * Array of messages returned. + * + * @return the messages + */ + public List> getMessages() { + return messages; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespResult.java new file mode 100644 index 000000000..291a15bc5 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespResult.java @@ -0,0 +1,78 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * Container for response information. + */ +public class ReplaceInsecureJsRespResult extends GenericModel { + + protected String id; + protected String value; + protected Boolean editable; + @SerializedName("modified_on") + protected Date modifiedOn; + + protected ReplaceInsecureJsRespResult() { } + + /** + * Gets the id. + * + * ID. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** + * Gets the editable. + * + * Editable. + * + * @return the editable + */ + public Boolean isEditable() { + return editable; + } + + /** + * Gets the modifiedOn. + * + * Modified date. + * + * @return the modifiedOn + */ + public Date getModifiedOn() { + return modifiedOn; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingResp.java index abf088b53..59c7ef4f8 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ResponseBufferingResp extends GenericModel { protected List> errors; protected List> messages; + protected ResponseBufferingResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResult.java index c0417481d..5d560e5ee 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class ResponseBufferingRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected ResponseBufferingRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationResp.java index 8615430f4..72b3821b6 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ScriptLoadOptimizationResp extends GenericModel { protected List> errors; protected List> messages; + protected ScriptLoadOptimizationResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResult.java index 7673a0032..6b135b6b6 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class ScriptLoadOptimizationRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected ScriptLoadOptimizationRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderResp.java index a812b3b4b..ab567ee9d 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class SecurityHeaderResp extends GenericModel { protected List> errors; protected List> messages; + protected SecurityHeaderResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResult.java index 0baef5f6e..7f0554d46 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class SecurityHeaderRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected SecurityHeaderRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValue.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValue.java index 8cdb795de..f8488fe17 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValue.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValue.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.google.gson.annotations.SerializedName; @@ -23,6 +24,8 @@ public class SecurityHeaderRespResultValue extends GenericModel { @SerializedName("strict_transport_security") protected SecurityHeaderRespResultValueStrictTransportSecurity strictTransportSecurity; + protected SecurityHeaderRespResultValue() { } + /** * Gets the strictTransportSecurity. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurity.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurity.java index d707d8110..b15ab4688 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurity.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurity.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.google.gson.annotations.SerializedName; @@ -25,8 +26,11 @@ public class SecurityHeaderRespResultValueStrictTransportSecurity extends Generi protected Long maxAge; @SerializedName("include_subdomains") protected Boolean includeSubdomains; + protected Boolean preload; protected Boolean nosniff; + protected SecurityHeaderRespResultValueStrictTransportSecurity() { } + /** * Gets the enabled. * @@ -60,6 +64,17 @@ public Boolean isIncludeSubdomains() { return includeSubdomains; } + /** + * Gets the preload. + * + * Whether or not to permit browsers to preload security_header config. + * + * @return the preload + */ + public Boolean isPreload() { + return preload; + } + /** * Gets the nosniff. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValue.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValue.java index 5489cb098..f7139c038 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValue.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValue.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.google.gson.annotations.SerializedName; @@ -29,6 +30,11 @@ public class SecurityHeaderSettingValue extends GenericModel { public static class Builder { private SecurityHeaderSettingValueStrictTransportSecurity strictTransportSecurity; + /** + * Instantiates a new Builder from an existing SecurityHeaderSettingValue instance. + * + * @param securityHeaderSettingValue the instance to initialize the Builder with + */ private Builder(SecurityHeaderSettingValue securityHeaderSettingValue) { this.strictTransportSecurity = securityHeaderSettingValue.strictTransportSecurity; } @@ -69,6 +75,8 @@ public Builder strictTransportSecurity(SecurityHeaderSettingValueStrictTransport } } + protected SecurityHeaderSettingValue() { } + protected SecurityHeaderSettingValue(Builder builder) { com.ibm.cloud.sdk.core.util.Validator.notNull(builder.strictTransportSecurity, "strictTransportSecurity cannot be null"); diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurity.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurity.java index 3a8486486..3575cee0c 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurity.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurity.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.google.gson.annotations.SerializedName; @@ -25,6 +26,7 @@ public class SecurityHeaderSettingValueStrictTransportSecurity extends GenericMo protected Long maxAge; @SerializedName("include_subdomains") protected Boolean includeSubdomains; + protected Boolean preload; protected Boolean nosniff; /** @@ -34,12 +36,19 @@ public static class Builder { private Boolean enabled; private Long maxAge; private Boolean includeSubdomains; + private Boolean preload; private Boolean nosniff; + /** + * Instantiates a new Builder from an existing SecurityHeaderSettingValueStrictTransportSecurity instance. + * + * @param securityHeaderSettingValueStrictTransportSecurity the instance to initialize the Builder with + */ private Builder(SecurityHeaderSettingValueStrictTransportSecurity securityHeaderSettingValueStrictTransportSecurity) { this.enabled = securityHeaderSettingValueStrictTransportSecurity.enabled; this.maxAge = securityHeaderSettingValueStrictTransportSecurity.maxAge; this.includeSubdomains = securityHeaderSettingValueStrictTransportSecurity.includeSubdomains; + this.preload = securityHeaderSettingValueStrictTransportSecurity.preload; this.nosniff = securityHeaderSettingValueStrictTransportSecurity.nosniff; } @@ -55,12 +64,14 @@ public Builder() { * @param enabled the enabled * @param maxAge the maxAge * @param includeSubdomains the includeSubdomains + * @param preload the preload * @param nosniff the nosniff */ - public Builder(Boolean enabled, Long maxAge, Boolean includeSubdomains, Boolean nosniff) { + public Builder(Boolean enabled, Long maxAge, Boolean includeSubdomains, Boolean preload, Boolean nosniff) { this.enabled = enabled; this.maxAge = maxAge; this.includeSubdomains = includeSubdomains; + this.preload = preload; this.nosniff = nosniff; } @@ -106,6 +117,17 @@ public Builder includeSubdomains(Boolean includeSubdomains) { return this; } + /** + * Set the preload. + * + * @param preload the preload + * @return the SecurityHeaderSettingValueStrictTransportSecurity builder + */ + public Builder preload(Boolean preload) { + this.preload = preload; + return this; + } + /** * Set the nosniff. * @@ -118,6 +140,8 @@ public Builder nosniff(Boolean nosniff) { } } + protected SecurityHeaderSettingValueStrictTransportSecurity() { } + protected SecurityHeaderSettingValueStrictTransportSecurity(Builder builder) { com.ibm.cloud.sdk.core.util.Validator.notNull(builder.enabled, "enabled cannot be null"); @@ -125,11 +149,14 @@ protected SecurityHeaderSettingValueStrictTransportSecurity(Builder builder) { "maxAge cannot be null"); com.ibm.cloud.sdk.core.util.Validator.notNull(builder.includeSubdomains, "includeSubdomains cannot be null"); + com.ibm.cloud.sdk.core.util.Validator.notNull(builder.preload, + "preload cannot be null"); com.ibm.cloud.sdk.core.util.Validator.notNull(builder.nosniff, "nosniff cannot be null"); enabled = builder.enabled; maxAge = builder.maxAge; includeSubdomains = builder.includeSubdomains; + preload = builder.preload; nosniff = builder.nosniff; } @@ -175,6 +202,17 @@ public Boolean includeSubdomains() { return includeSubdomains; } + /** + * Gets the preload. + * + * Whether or not to permit browsers to preload security_header config. + * + * @return the preload + */ + public Boolean preload() { + return preload; + } + /** * Gets the nosniff. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeResp.java index 0aebb498b..a9e1fd434 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ServerSideExcludeResp extends GenericModel { protected List> errors; protected List> messages; + protected ServerSideExcludeResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResult.java index e26b71d99..17ddf8fc2 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class ServerSideExcludeRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected ServerSideExcludeRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthResp.java index b69d7a05a..8053fae25 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class TlsClientAuthResp extends GenericModel { protected List> errors; protected List> messages; + protected TlsClientAuthResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResult.java index cda6229a1..c5edb7aba 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class TlsClientAuthRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected TlsClientAuthRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpResp.java index 2c4661e63..8353bbc0e 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class TrueClientIpResp extends GenericModel { protected List> errors; protected List> messages; + protected TrueClientIpResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResult.java index bcf502128..b2db68ab0 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class TrueClientIpRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected TrueClientIpRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptions.java index c423393bd..ea17ac3ae 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateAlwaysUseHttpsOptions instance. + * + * @param updateAlwaysUseHttpsOptions the instance to initialize the Builder with + */ private Builder(UpdateAlwaysUseHttpsOptions updateAlwaysUseHttpsOptions) { this.value = updateAlwaysUseHttpsOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateAlwaysUseHttpsOptions() { } + protected UpdateAlwaysUseHttpsOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptions.java index f69d202f1..3f35f0c05 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateAutomaticHttpsRewritesOptions instance. + * + * @param updateAutomaticHttpsRewritesOptions the instance to initialize the Builder with + */ private Builder(UpdateAutomaticHttpsRewritesOptions updateAutomaticHttpsRewritesOptions) { this.value = updateAutomaticHttpsRewritesOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateAutomaticHttpsRewritesOptions() { } + protected UpdateAutomaticHttpsRewritesOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBotManagementOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBotManagementOptions.java new file mode 100644 index 000000000..9f9767f95 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBotManagementOptions.java @@ -0,0 +1,195 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateBotManagement options. + */ +public class UpdateBotManagementOptions extends GenericModel { + + /** + * Block scrapers and crawlers known to be feeding AI training data. + */ + public interface AiBotsProtection { + /** block. */ + String BLOCK = "block"; + /** disabled. */ + String DISABLED = "disabled"; + } + + protected Boolean sessionScore; + protected Boolean enableJs; + protected Boolean useLatestModel; + protected String aiBotsProtection; + + /** + * Builder. + */ + public static class Builder { + private Boolean sessionScore; + private Boolean enableJs; + private Boolean useLatestModel; + private String aiBotsProtection; + + /** + * Instantiates a new Builder from an existing UpdateBotManagementOptions instance. + * + * @param updateBotManagementOptions the instance to initialize the Builder with + */ + private Builder(UpdateBotManagementOptions updateBotManagementOptions) { + this.sessionScore = updateBotManagementOptions.sessionScore; + this.enableJs = updateBotManagementOptions.enableJs; + this.useLatestModel = updateBotManagementOptions.useLatestModel; + this.aiBotsProtection = updateBotManagementOptions.aiBotsProtection; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateBotManagementOptions. + * + * @return the new UpdateBotManagementOptions instance + */ + public UpdateBotManagementOptions build() { + return new UpdateBotManagementOptions(this); + } + + /** + * Set the sessionScore. + * + * @param sessionScore the sessionScore + * @return the UpdateBotManagementOptions builder + */ + public Builder sessionScore(Boolean sessionScore) { + this.sessionScore = sessionScore; + return this; + } + + /** + * Set the enableJs. + * + * @param enableJs the enableJs + * @return the UpdateBotManagementOptions builder + */ + public Builder enableJs(Boolean enableJs) { + this.enableJs = enableJs; + return this; + } + + /** + * Set the useLatestModel. + * + * @param useLatestModel the useLatestModel + * @return the UpdateBotManagementOptions builder + */ + public Builder useLatestModel(Boolean useLatestModel) { + this.useLatestModel = useLatestModel; + return this; + } + + /** + * Set the aiBotsProtection. + * + * @param aiBotsProtection the aiBotsProtection + * @return the UpdateBotManagementOptions builder + */ + public Builder aiBotsProtection(String aiBotsProtection) { + this.aiBotsProtection = aiBotsProtection; + return this; + } + + /** + * Set the botMgtSettings. + * + * @param botMgtSettings the botMgtSettings + * @return the UpdateBotManagementOptions builder + */ + public Builder botMgtSettings(BotMgtSettings botMgtSettings) { + this.sessionScore = botMgtSettings.sessionScore(); + this.enableJs = botMgtSettings.enableJs(); + this.useLatestModel = botMgtSettings.useLatestModel(); + this.aiBotsProtection = botMgtSettings.aiBotsProtection(); + return this; + } + } + + protected UpdateBotManagementOptions() { } + + protected UpdateBotManagementOptions(Builder builder) { + sessionScore = builder.sessionScore; + enableJs = builder.enableJs; + useLatestModel = builder.useLatestModel; + aiBotsProtection = builder.aiBotsProtection; + } + + /** + * New builder. + * + * @return a UpdateBotManagementOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the sessionScore. + * + * Set to disable tracking the max bot score during a session using the Bot Management cookie. + * + * @return the sessionScore + */ + public Boolean sessionScore() { + return sessionScore; + } + + /** + * Gets the enableJs. + * + * Use JavaScript detections to improve bot detection. + * + * @return the enableJs + */ + public Boolean enableJs() { + return enableJs; + } + + /** + * Gets the useLatestModel. + * + * Automatically update to the newest bot detection models as they are released. + * + * @return the useLatestModel + */ + public Boolean useLatestModel() { + return useLatestModel; + } + + /** + * Gets the aiBotsProtection. + * + * Block scrapers and crawlers known to be feeding AI training data. + * + * @return the aiBotsProtection + */ + public String aiBotsProtection() { + return aiBotsProtection; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrotliOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrotliOptions.java new file mode 100644 index 000000000..e6849b891 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrotliOptions.java @@ -0,0 +1,103 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateBrotli options. + */ +public class UpdateBrotliOptions extends GenericModel { + + /** + * Value. + */ + public interface Value { + /** on. */ + String ON = "on"; + /** off. */ + String OFF = "off"; + } + + protected String value; + + /** + * Builder. + */ + public static class Builder { + private String value; + + /** + * Instantiates a new Builder from an existing UpdateBrotliOptions instance. + * + * @param updateBrotliOptions the instance to initialize the Builder with + */ + private Builder(UpdateBrotliOptions updateBrotliOptions) { + this.value = updateBrotliOptions.value; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateBrotliOptions. + * + * @return the new UpdateBrotliOptions instance + */ + public UpdateBrotliOptions build() { + return new UpdateBrotliOptions(this); + } + + /** + * Set the value. + * + * @param value the value + * @return the UpdateBrotliOptions builder + */ + public Builder value(String value) { + this.value = value; + return this; + } + } + + protected UpdateBrotliOptions() { } + + protected UpdateBrotliOptions(Builder builder) { + value = builder.value; + } + + /** + * New builder. + * + * @return a UpdateBrotliOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String value() { + return value; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptions.java index 64aec2f7d..5a3315aa4 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateBrowserCheckOptions instance. + * + * @param updateBrowserCheckOptions the instance to initialize the Builder with + */ private Builder(UpdateBrowserCheckOptions updateBrowserCheckOptions) { this.value = updateBrowserCheckOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateBrowserCheckOptions() { } + protected UpdateBrowserCheckOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptions.java index 62d14d087..516f41d21 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -27,6 +28,11 @@ public class UpdateChallengeTtlOptions extends GenericModel { public static class Builder { private Long value; + /** + * Instantiates a new Builder from an existing UpdateChallengeTtlOptions instance. + * + * @param updateChallengeTtlOptions the instance to initialize the Builder with + */ private Builder(UpdateChallengeTtlOptions updateChallengeTtlOptions) { this.value = updateChallengeTtlOptions.value; } @@ -58,6 +64,8 @@ public Builder value(long value) { } } + protected UpdateChallengeTtlOptions() { } + protected UpdateChallengeTtlOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptions.java index e82ec4a7d..f756f3918 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.ArrayList; @@ -73,6 +74,11 @@ public interface Value { public static class Builder { private List value; + /** + * Instantiates a new Builder from an existing UpdateCiphersOptions instance. + * + * @param updateCiphersOptions the instance to initialize the Builder with + */ private Builder(UpdateCiphersOptions updateCiphersOptions) { this.value = updateCiphersOptions.value; } @@ -93,9 +99,9 @@ public UpdateCiphersOptions build() { } /** - * Adds an value to value. + * Adds a new element to value. * - * @param value the new value + * @param value the new element to be added * @return the UpdateCiphersOptions builder */ public Builder addValue(String value) { @@ -121,6 +127,8 @@ public Builder value(List value) { } } + protected UpdateCiphersOptions() { } + protected UpdateCiphersOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEmailObfuscationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEmailObfuscationOptions.java new file mode 100644 index 000000000..6c2d7b78e --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEmailObfuscationOptions.java @@ -0,0 +1,103 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateEmailObfuscation options. + */ +public class UpdateEmailObfuscationOptions extends GenericModel { + + /** + * Value. + */ + public interface Value { + /** on. */ + String ON = "on"; + /** off. */ + String OFF = "off"; + } + + protected String value; + + /** + * Builder. + */ + public static class Builder { + private String value; + + /** + * Instantiates a new Builder from an existing UpdateEmailObfuscationOptions instance. + * + * @param updateEmailObfuscationOptions the instance to initialize the Builder with + */ + private Builder(UpdateEmailObfuscationOptions updateEmailObfuscationOptions) { + this.value = updateEmailObfuscationOptions.value; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateEmailObfuscationOptions. + * + * @return the new UpdateEmailObfuscationOptions instance + */ + public UpdateEmailObfuscationOptions build() { + return new UpdateEmailObfuscationOptions(this); + } + + /** + * Set the value. + * + * @param value the value + * @return the UpdateEmailObfuscationOptions builder + */ + public Builder value(String value) { + this.value = value; + return this; + } + } + + protected UpdateEmailObfuscationOptions() { } + + protected UpdateEmailObfuscationOptions(Builder builder) { + value = builder.value; + } + + /** + * New builder. + * + * @return a UpdateEmailObfuscationOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String value() { + return value; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptions.java index 130218264..25107c6f9 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateEnableErrorPagesOnOptions instance. + * + * @param updateEnableErrorPagesOnOptions the instance to initialize the Builder with + */ private Builder(UpdateEnableErrorPagesOnOptions updateEnableErrorPagesOnOptions) { this.value = updateEnableErrorPagesOnOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateEnableErrorPagesOnOptions() { } + protected UpdateEnableErrorPagesOnOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptions.java index cb37fc8bb..7b9ec1c94 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateHotlinkProtectionOptions instance. + * + * @param updateHotlinkProtectionOptions the instance to initialize the Builder with + */ private Builder(UpdateHotlinkProtectionOptions updateHotlinkProtectionOptions) { this.value = updateHotlinkProtectionOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateHotlinkProtectionOptions() { } + protected UpdateHotlinkProtectionOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2Options.java index ed069188b..0b8738913 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateHttp2Options instance. + * + * @param updateHttp2Options the instance to initialize the Builder with + */ private Builder(UpdateHttp2Options updateHttp2Options) { this.value = updateHttp2Options.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateHttp2Options() { } + protected UpdateHttp2Options(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3Options.java index 7b8fd9c7f..bfaa6fa5d 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateHttp3Options instance. + * + * @param updateHttp3Options the instance to initialize the Builder with + */ private Builder(UpdateHttp3Options updateHttp3Options) { this.value = updateHttp3Options.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateHttp3Options() { } + protected UpdateHttp3Options(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptions.java index f400e0a9a..7ef486f3e 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateImageLoadOptimizationOptions instance. + * + * @param updateImageLoadOptimizationOptions the instance to initialize the Builder with + */ private Builder(UpdateImageLoadOptimizationOptions updateImageLoadOptimizationOptions) { this.value = updateImageLoadOptimizationOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateImageLoadOptimizationOptions() { } + protected UpdateImageLoadOptimizationOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptions.java index ea2552a08..103279291 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -41,6 +42,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateImageSizeOptimizationOptions instance. + * + * @param updateImageSizeOptimizationOptions the instance to initialize the Builder with + */ private Builder(UpdateImageSizeOptimizationOptions updateImageSizeOptimizationOptions) { this.value = updateImageSizeOptimizationOptions.value; } @@ -72,6 +78,8 @@ public Builder value(String value) { } } + protected UpdateImageSizeOptimizationOptions() { } + protected UpdateImageSizeOptimizationOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptions.java index 753dbd7fb..747e69b2e 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateIpGeolocationOptions instance. + * + * @param updateIpGeolocationOptions the instance to initialize the Builder with + */ private Builder(UpdateIpGeolocationOptions updateIpGeolocationOptions) { this.value = updateIpGeolocationOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateIpGeolocationOptions() { } + protected UpdateIpGeolocationOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6Options.java index 307cb0c98..930db4fb8 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateIpv6Options instance. + * + * @param updateIpv6Options the instance to initialize the Builder with + */ private Builder(UpdateIpv6Options updateIpv6Options) { this.value = updateIpv6Options.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateIpv6Options() { } + protected UpdateIpv6Options(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateLogRetentionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateLogRetentionOptions.java new file mode 100644 index 000000000..8eaa72f5a --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateLogRetentionOptions.java @@ -0,0 +1,160 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateLogRetention options. + */ +public class UpdateLogRetentionOptions extends GenericModel { + + protected String crn; + protected String zoneIdentifier; + protected Boolean flag; + + /** + * Builder. + */ + public static class Builder { + private String crn; + private String zoneIdentifier; + private Boolean flag; + + /** + * Instantiates a new Builder from an existing UpdateLogRetentionOptions instance. + * + * @param updateLogRetentionOptions the instance to initialize the Builder with + */ + private Builder(UpdateLogRetentionOptions updateLogRetentionOptions) { + this.crn = updateLogRetentionOptions.crn; + this.zoneIdentifier = updateLogRetentionOptions.zoneIdentifier; + this.flag = updateLogRetentionOptions.flag; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Instantiates a new builder with required properties. + * + * @param crn the crn + * @param zoneIdentifier the zoneIdentifier + */ + public Builder(String crn, String zoneIdentifier) { + this.crn = crn; + this.zoneIdentifier = zoneIdentifier; + } + + /** + * Builds a UpdateLogRetentionOptions. + * + * @return the new UpdateLogRetentionOptions instance + */ + public UpdateLogRetentionOptions build() { + return new UpdateLogRetentionOptions(this); + } + + /** + * Set the crn. + * + * @param crn the crn + * @return the UpdateLogRetentionOptions builder + */ + public Builder crn(String crn) { + this.crn = crn; + return this; + } + + /** + * Set the zoneIdentifier. + * + * @param zoneIdentifier the zoneIdentifier + * @return the UpdateLogRetentionOptions builder + */ + public Builder zoneIdentifier(String zoneIdentifier) { + this.zoneIdentifier = zoneIdentifier; + return this; + } + + /** + * Set the flag. + * + * @param flag the flag + * @return the UpdateLogRetentionOptions builder + */ + public Builder flag(Boolean flag) { + this.flag = flag; + return this; + } + } + + protected UpdateLogRetentionOptions() { } + + protected UpdateLogRetentionOptions(Builder builder) { + com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.crn, + "crn cannot be empty"); + com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.zoneIdentifier, + "zoneIdentifier cannot be empty"); + crn = builder.crn; + zoneIdentifier = builder.zoneIdentifier; + flag = builder.flag; + } + + /** + * New builder. + * + * @return a UpdateLogRetentionOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the crn. + * + * Full url-encoded cloud resource name (CRN) of resource instance. + * + * @return the crn + */ + public String crn() { + return crn; + } + + /** + * Gets the zoneIdentifier. + * + * Zone identifier. + * + * @return the zoneIdentifier + */ + public String zoneIdentifier() { + return zoneIdentifier; + } + + /** + * Gets the flag. + * + * True/false value to turn log retention on/off respectively. + * + * @return the flag + */ + public Boolean flag() { + return flag; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptions.java index 9a7618d68..60cd63cc1 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -27,6 +28,11 @@ public class UpdateMaxUploadOptions extends GenericModel { public static class Builder { private Long value; + /** + * Instantiates a new Builder from an existing UpdateMaxUploadOptions instance. + * + * @param updateMaxUploadOptions the instance to initialize the Builder with + */ private Builder(UpdateMaxUploadOptions updateMaxUploadOptions) { this.value = updateMaxUploadOptions.value; } @@ -58,6 +64,8 @@ public Builder value(long value) { } } + protected UpdateMaxUploadOptions() { } + protected UpdateMaxUploadOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptions.java index 35ccb112b..46e24f047 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -27,6 +28,11 @@ public class UpdateMinTlsVersionOptions extends GenericModel { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateMinTlsVersionOptions instance. + * + * @param updateMinTlsVersionOptions the instance to initialize the Builder with + */ private Builder(UpdateMinTlsVersionOptions updateMinTlsVersionOptions) { this.value = updateMinTlsVersionOptions.value; } @@ -58,6 +64,8 @@ public Builder value(String value) { } } + protected UpdateMinTlsVersionOptions() { } + protected UpdateMinTlsVersionOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptions.java index 757eff9b1..b0e6de38c 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -27,6 +28,11 @@ public class UpdateMinifyOptions extends GenericModel { public static class Builder { private MinifySettingValue value; + /** + * Instantiates a new Builder from an existing UpdateMinifyOptions instance. + * + * @param updateMinifyOptions the instance to initialize the Builder with + */ private Builder(UpdateMinifyOptions updateMinifyOptions) { this.value = updateMinifyOptions.value; } @@ -58,6 +64,8 @@ public Builder value(MinifySettingValue value) { } } + protected UpdateMinifyOptions() { } + protected UpdateMinifyOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptions.java index 0f57634e7..b97e43959 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -27,6 +28,11 @@ public class UpdateMobileRedirectOptions extends GenericModel { public static class Builder { private MobileRedirecSettingValue value; + /** + * Instantiates a new Builder from an existing UpdateMobileRedirectOptions instance. + * + * @param updateMobileRedirectOptions the instance to initialize the Builder with + */ private Builder(UpdateMobileRedirectOptions updateMobileRedirectOptions) { this.value = updateMobileRedirectOptions.value; } @@ -58,6 +64,8 @@ public Builder value(MobileRedirecSettingValue value) { } } + protected UpdateMobileRedirectOptions() { } + protected UpdateMobileRedirectOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptions.java index 5fe189d10..590fb6ebb 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateOpportunisticEncryptionOptions instance. + * + * @param updateOpportunisticEncryptionOptions the instance to initialize the Builder with + */ private Builder(UpdateOpportunisticEncryptionOptions updateOpportunisticEncryptionOptions) { this.value = updateOpportunisticEncryptionOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateOpportunisticEncryptionOptions() { } + protected UpdateOpportunisticEncryptionOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticOnionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticOnionOptions.java new file mode 100644 index 000000000..90ef8de0f --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticOnionOptions.java @@ -0,0 +1,103 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateOpportunisticOnion options. + */ +public class UpdateOpportunisticOnionOptions extends GenericModel { + + /** + * Value. + */ + public interface Value { + /** on. */ + String ON = "on"; + /** off. */ + String OFF = "off"; + } + + protected String value; + + /** + * Builder. + */ + public static class Builder { + private String value; + + /** + * Instantiates a new Builder from an existing UpdateOpportunisticOnionOptions instance. + * + * @param updateOpportunisticOnionOptions the instance to initialize the Builder with + */ + private Builder(UpdateOpportunisticOnionOptions updateOpportunisticOnionOptions) { + this.value = updateOpportunisticOnionOptions.value; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateOpportunisticOnionOptions. + * + * @return the new UpdateOpportunisticOnionOptions instance + */ + public UpdateOpportunisticOnionOptions build() { + return new UpdateOpportunisticOnionOptions(this); + } + + /** + * Set the value. + * + * @param value the value + * @return the UpdateOpportunisticOnionOptions builder + */ + public Builder value(String value) { + this.value = value; + return this; + } + } + + protected UpdateOpportunisticOnionOptions() { } + + protected UpdateOpportunisticOnionOptions(Builder builder) { + value = builder.value; + } + + /** + * New builder. + * + * @return a UpdateOpportunisticOnionOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String value() { + return value; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginMaxHttpVersionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginMaxHttpVersionOptions.java new file mode 100644 index 000000000..8d5f22032 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginMaxHttpVersionOptions.java @@ -0,0 +1,93 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateOriginMaxHttpVersion options. + */ +public class UpdateOriginMaxHttpVersionOptions extends GenericModel { + + protected String value; + + /** + * Builder. + */ + public static class Builder { + private String value; + + /** + * Instantiates a new Builder from an existing UpdateOriginMaxHttpVersionOptions instance. + * + * @param updateOriginMaxHttpVersionOptions the instance to initialize the Builder with + */ + private Builder(UpdateOriginMaxHttpVersionOptions updateOriginMaxHttpVersionOptions) { + this.value = updateOriginMaxHttpVersionOptions.value; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateOriginMaxHttpVersionOptions. + * + * @return the new UpdateOriginMaxHttpVersionOptions instance + */ + public UpdateOriginMaxHttpVersionOptions build() { + return new UpdateOriginMaxHttpVersionOptions(this); + } + + /** + * Set the value. + * + * @param value the value + * @return the UpdateOriginMaxHttpVersionOptions builder + */ + public Builder value(String value) { + this.value = value; + return this; + } + } + + protected UpdateOriginMaxHttpVersionOptions() { } + + protected UpdateOriginMaxHttpVersionOptions(Builder builder) { + value = builder.value; + } + + /** + * New builder. + * + * @return a UpdateOriginMaxHttpVersionOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String value() { + return value; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginPostQuantumEncryptionOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginPostQuantumEncryptionOptions.java new file mode 100644 index 000000000..d4a2859ee --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginPostQuantumEncryptionOptions.java @@ -0,0 +1,113 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateOriginPostQuantumEncryption options. + */ +public class UpdateOriginPostQuantumEncryptionOptions extends GenericModel { + + /** + * Instructs CIS to use Post-Quantum (PQ) key agreement algorithms when connecting to your origin. + * - `preferred`: Instructs CIS to opportunistically send a Post-Quantum keyshare in the first message to the origin + * for fastest connections when the origin supports and prefers PQ. + * - `supported`: The PQ algorithms are advertised but used only when requested by the origin. + * - `off`: The PQ algorithms are not advertised. + */ + public interface Value { + /** preferred. */ + String PREFERRED = "preferred"; + /** supported. */ + String SUPPORTED = "supported"; + /** off. */ + String OFF = "off"; + } + + protected String value; + + /** + * Builder. + */ + public static class Builder { + private String value; + + /** + * Instantiates a new Builder from an existing UpdateOriginPostQuantumEncryptionOptions instance. + * + * @param updateOriginPostQuantumEncryptionOptions the instance to initialize the Builder with + */ + private Builder(UpdateOriginPostQuantumEncryptionOptions updateOriginPostQuantumEncryptionOptions) { + this.value = updateOriginPostQuantumEncryptionOptions.value; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateOriginPostQuantumEncryptionOptions. + * + * @return the new UpdateOriginPostQuantumEncryptionOptions instance + */ + public UpdateOriginPostQuantumEncryptionOptions build() { + return new UpdateOriginPostQuantumEncryptionOptions(this); + } + + /** + * Set the value. + * + * @param value the value + * @return the UpdateOriginPostQuantumEncryptionOptions builder + */ + public Builder value(String value) { + this.value = value; + return this; + } + } + + protected UpdateOriginPostQuantumEncryptionOptions() { } + + protected UpdateOriginPostQuantumEncryptionOptions(Builder builder) { + value = builder.value; + } + + /** + * New builder. + * + * @return a UpdateOriginPostQuantumEncryptionOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the value. + * + * Instructs CIS to use Post-Quantum (PQ) key agreement algorithms when connecting to your origin. + * - `preferred`: Instructs CIS to opportunistically send a Post-Quantum keyshare in the first message to the origin + * for fastest connections when the origin supports and prefers PQ. + * - `supported`: The PQ algorithms are advertised but used only when requested by the origin. + * - `off`: The PQ algorithms are not advertised. + * + * @return the value + */ + public String value() { + return value; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptions.java index b245a722e..07237b238 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdatePrefetchPreloadOptions instance. + * + * @param updatePrefetchPreloadOptions the instance to initialize the Builder with + */ private Builder(UpdatePrefetchPreloadOptions updatePrefetchPreloadOptions) { this.value = updatePrefetchPreloadOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdatePrefetchPreloadOptions() { } + protected UpdatePrefetchPreloadOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateProxyReadTimeoutOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateProxyReadTimeoutOptions.java new file mode 100644 index 000000000..ec376387f --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateProxyReadTimeoutOptions.java @@ -0,0 +1,93 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateProxyReadTimeout options. + */ +public class UpdateProxyReadTimeoutOptions extends GenericModel { + + protected Double value; + + /** + * Builder. + */ + public static class Builder { + private Double value; + + /** + * Instantiates a new Builder from an existing UpdateProxyReadTimeoutOptions instance. + * + * @param updateProxyReadTimeoutOptions the instance to initialize the Builder with + */ + private Builder(UpdateProxyReadTimeoutOptions updateProxyReadTimeoutOptions) { + this.value = updateProxyReadTimeoutOptions.value; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateProxyReadTimeoutOptions. + * + * @return the new UpdateProxyReadTimeoutOptions instance + */ + public UpdateProxyReadTimeoutOptions build() { + return new UpdateProxyReadTimeoutOptions(this); + } + + /** + * Set the value. + * + * @param value the value + * @return the UpdateProxyReadTimeoutOptions builder + */ + public Builder value(Double value) { + this.value = value; + return this; + } + } + + protected UpdateProxyReadTimeoutOptions() { } + + protected UpdateProxyReadTimeoutOptions(Builder builder) { + value = builder.value; + } + + /** + * New builder. + * + * @return a UpdateProxyReadTimeoutOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public Double value() { + return value; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4Options.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4Options.java index cd5485df8..559c5c911 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4Options.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4Options.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -39,6 +40,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdatePseudoIpv4Options instance. + * + * @param updatePseudoIpv4Options the instance to initialize the Builder with + */ private Builder(UpdatePseudoIpv4Options updatePseudoIpv4Options) { this.value = updatePseudoIpv4Options.value; } @@ -70,6 +76,8 @@ public Builder value(String value) { } } + protected UpdatePseudoIpv4Options() { } + protected UpdatePseudoIpv4Options(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateReplaceInsecureJsOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateReplaceInsecureJsOptions.java new file mode 100644 index 000000000..4d12d5e84 --- /dev/null +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateReplaceInsecureJsOptions.java @@ -0,0 +1,103 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateReplaceInsecureJs options. + */ +public class UpdateReplaceInsecureJsOptions extends GenericModel { + + /** + * Value. + */ + public interface Value { + /** on. */ + String ON = "on"; + /** off. */ + String OFF = "off"; + } + + protected String value; + + /** + * Builder. + */ + public static class Builder { + private String value; + + /** + * Instantiates a new Builder from an existing UpdateReplaceInsecureJsOptions instance. + * + * @param updateReplaceInsecureJsOptions the instance to initialize the Builder with + */ + private Builder(UpdateReplaceInsecureJsOptions updateReplaceInsecureJsOptions) { + this.value = updateReplaceInsecureJsOptions.value; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a UpdateReplaceInsecureJsOptions. + * + * @return the new UpdateReplaceInsecureJsOptions instance + */ + public UpdateReplaceInsecureJsOptions build() { + return new UpdateReplaceInsecureJsOptions(this); + } + + /** + * Set the value. + * + * @param value the value + * @return the UpdateReplaceInsecureJsOptions builder + */ + public Builder value(String value) { + this.value = value; + return this; + } + } + + protected UpdateReplaceInsecureJsOptions() { } + + protected UpdateReplaceInsecureJsOptions(Builder builder) { + value = builder.value; + } + + /** + * New builder. + * + * @return a UpdateReplaceInsecureJsOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the value. + * + * Value. + * + * @return the value + */ + public String value() { + return value; + } +} + diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptions.java index 259312916..4c2daa754 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateResponseBufferingOptions instance. + * + * @param updateResponseBufferingOptions the instance to initialize the Builder with + */ private Builder(UpdateResponseBufferingOptions updateResponseBufferingOptions) { this.value = updateResponseBufferingOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateResponseBufferingOptions() { } + protected UpdateResponseBufferingOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptions.java index 4b4f03e43..5ddcd7295 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateScriptLoadOptimizationOptions instance. + * + * @param updateScriptLoadOptimizationOptions the instance to initialize the Builder with + */ private Builder(UpdateScriptLoadOptimizationOptions updateScriptLoadOptimizationOptions) { this.value = updateScriptLoadOptimizationOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateScriptLoadOptimizationOptions() { } + protected UpdateScriptLoadOptimizationOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptions.java index df5ed497c..07088fa70 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -27,6 +28,11 @@ public class UpdateSecurityHeaderOptions extends GenericModel { public static class Builder { private SecurityHeaderSettingValue value; + /** + * Instantiates a new Builder from an existing UpdateSecurityHeaderOptions instance. + * + * @param updateSecurityHeaderOptions the instance to initialize the Builder with + */ private Builder(UpdateSecurityHeaderOptions updateSecurityHeaderOptions) { this.value = updateSecurityHeaderOptions.value; } @@ -58,6 +64,8 @@ public Builder value(SecurityHeaderSettingValue value) { } } + protected UpdateSecurityHeaderOptions() { } + protected UpdateSecurityHeaderOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptions.java index 2437175a5..04e4d3e96 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateServerSideExcludeOptions instance. + * + * @param updateServerSideExcludeOptions the instance to initialize the Builder with + */ private Builder(UpdateServerSideExcludeOptions updateServerSideExcludeOptions) { this.value = updateServerSideExcludeOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateServerSideExcludeOptions() { } + protected UpdateServerSideExcludeOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptions.java index ef783d927..cebdd92f2 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateTlsClientAuthOptions instance. + * + * @param updateTlsClientAuthOptions the instance to initialize the Builder with + */ private Builder(UpdateTlsClientAuthOptions updateTlsClientAuthOptions) { this.value = updateTlsClientAuthOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateTlsClientAuthOptions() { } + protected UpdateTlsClientAuthOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptions.java index 22b8df831..10c715c5d 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateTrueClientIpOptions instance. + * + * @param updateTrueClientIpOptions the instance to initialize the Builder with + */ private Builder(UpdateTrueClientIpOptions updateTrueClientIpOptions) { this.value = updateTrueClientIpOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateTrueClientIpOptions() { } + protected UpdateTrueClientIpOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptions.java index 6585ba8e7..04285d8ff 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateWebApplicationFirewallOptions instance. + * + * @param updateWebApplicationFirewallOptions the instance to initialize the Builder with + */ private Builder(UpdateWebApplicationFirewallOptions updateWebApplicationFirewallOptions) { this.value = updateWebApplicationFirewallOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateWebApplicationFirewallOptions() { } + protected UpdateWebApplicationFirewallOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptions.java index e0912ed01..d0e8c9c88 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateWebSocketsOptions instance. + * + * @param updateWebSocketsOptions the instance to initialize the Builder with + */ private Builder(UpdateWebSocketsOptions updateWebSocketsOptions) { this.value = updateWebSocketsOptions.value; } @@ -68,6 +74,8 @@ public Builder value(String value) { } } + protected UpdateWebSocketsOptions() { } + protected UpdateWebSocketsOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptions.java index 1005db430..0b9f3542a 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -38,6 +39,11 @@ public interface Value { public static class Builder { private String value; + /** + * Instantiates a new Builder from an existing UpdateZoneCnameFlatteningOptions instance. + * + * @param updateZoneCnameFlatteningOptions the instance to initialize the Builder with + */ private Builder(UpdateZoneCnameFlatteningOptions updateZoneCnameFlatteningOptions) { this.value = updateZoneCnameFlatteningOptions.value; } @@ -69,6 +75,8 @@ public Builder value(String value) { } } + protected UpdateZoneCnameFlatteningOptions() { } + protected UpdateZoneCnameFlatteningOptions(Builder builder) { value = builder.value; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptions.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptions.java index e65424143..30093432a 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptions.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -37,6 +38,11 @@ public interface Status { public static class Builder { private String status; + /** + * Instantiates a new Builder from an existing UpdateZoneDnssecOptions instance. + * + * @param updateZoneDnssecOptions the instance to initialize the Builder with + */ private Builder(UpdateZoneDnssecOptions updateZoneDnssecOptions) { this.status = updateZoneDnssecOptions.status; } @@ -68,6 +74,8 @@ public Builder status(String status) { } } + protected UpdateZoneDnssecOptions() { } + protected UpdateZoneDnssecOptions(Builder builder) { status = builder.status; } diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafResp.java index 3c22dfc30..54fe7950f 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class WafResp extends GenericModel { protected List> errors; protected List> messages; + protected WafResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResult.java index 5e7e99c0e..f6b93279a 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class WafRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected WafRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsResp.java index 3e2c20312..abdb1ed1a 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class WebsocketsResp extends GenericModel { protected List> errors; protected List> messages; + protected WebsocketsResp() { } + /** * Gets the result. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResult.java index 3e14245c1..7dae9bd4f 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.Date; @@ -28,6 +29,8 @@ public class WebsocketsRespResult extends GenericModel { @SerializedName("modified_on") protected Date modifiedOn; + protected WebsocketsRespResult() { } + /** * Gets the id. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningResp.java index 11673fe69..f881a15d6 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ZonesCnameFlatteningResp extends GenericModel { protected List> messages; protected CnameFlatteningResponse result; + protected ZonesCnameFlatteningResp() { } + /** * Gets the success. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecResp.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecResp.java index 3f884d580..5b231a786 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecResp.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecResp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import java.util.List; @@ -26,6 +27,8 @@ public class ZonesDnssecResp extends GenericModel { protected List> messages; protected ZonesDnssecRespResult result; + protected ZonesDnssecResp() { } + /** * Gets the success. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResult.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResult.java index ab84aa7b5..cdf8ce081 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResult.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResult.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.model; import com.google.gson.annotations.SerializedName; @@ -52,6 +53,8 @@ public interface Status { @SerializedName("public_key") protected String publicKey; + protected ZonesDnssecRespResult() { } + /** * Gets the status. * diff --git a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/package-info.java b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/package-info.java index a7f3516b8..0d9b413ec 100644 --- a/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/package-info.java +++ b/modules/zones-settings/src/main/java/com/ibm/cloud/networking/zones_settings/v1/package-info.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + /** * Zones Settings v1. */ diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsIT.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsIT.java index 52c480d51..4267df24f 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsIT.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsIT.java @@ -15,21 +15,22 @@ import com.ibm.cloud.networking.test.SdkIntegrationTestBase; import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsResp; -import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesResp; -import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtResp; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtSettings; +import com.ibm.cloud.networking.zones_settings.v1.model.BrotliResp; import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckResp; -import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ChallengeTtlResp; -import com.ibm.cloud.networking.zones_settings.v1.model.ChallengeTtlRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.CiphersResp; -import com.ibm.cloud.networking.zones_settings.v1.model.CiphersRespResult; -import com.ibm.cloud.networking.zones_settings.v1.model.CnameFlatteningResponse; +import com.ibm.cloud.networking.zones_settings.v1.model.EmailObfuscationResp; import com.ibm.cloud.networking.zones_settings.v1.model.GetAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetAutomaticHttpsRewritesOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBrotliOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetCiphersOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetEmailObfuscationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetHttp2Options; @@ -38,13 +39,19 @@ import com.ibm.cloud.networking.zones_settings.v1.model.GetImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpv6Options; +import com.ibm.cloud.networking.zones_settings.v1.model.GetLogRetentionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginPostQuantumEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetPrefetchPreloadOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetProxyReadTimeoutOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetPseudoIpv4Options; +import com.ibm.cloud.networking.zones_settings.v1.model.GetReplaceInsecureJsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetSecurityHeaderOptions; @@ -56,60 +63,44 @@ import com.ibm.cloud.networking.zones_settings.v1.model.GetZoneCnameFlatteningOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetZoneDnssecOptions; import com.ibm.cloud.networking.zones_settings.v1.model.HotlinkProtectionResp; -import com.ibm.cloud.networking.zones_settings.v1.model.HotlinkProtectionRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.Http2Resp; -import com.ibm.cloud.networking.zones_settings.v1.model.Http2RespResult; import com.ibm.cloud.networking.zones_settings.v1.model.Http3Resp; -import com.ibm.cloud.networking.zones_settings.v1.model.Http3RespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ImageLoadOptimizationResp; -import com.ibm.cloud.networking.zones_settings.v1.model.ImageLoadOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ImageSizeOptimizationResp; -import com.ibm.cloud.networking.zones_settings.v1.model.ImageSizeOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.IpGeolocationResp; -import com.ibm.cloud.networking.zones_settings.v1.model.IpGeolocationRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6Resp; -import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6RespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.LogRetentionResp; import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadResp; -import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MinTlsVersionResp; -import com.ibm.cloud.networking.zones_settings.v1.model.MinTlsVersionRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyResp; -import com.ibm.cloud.networking.zones_settings.v1.model.MinifyRespResult; -import com.ibm.cloud.networking.zones_settings.v1.model.MinifyRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.model.MinifySettingValue; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirecSettingValue; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectResp; -import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResult; -import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionResp; -import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticOnionResp; import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruResp; -import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginMaxHttpVersionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginPostQuantumEncryptionResp; import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadResp; -import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.ProxyReadTimeoutResp; import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4Resp; -import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4RespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.ReplaceInsecureJsResp; import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingResp; -import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ScriptLoadOptimizationResp; -import com.ibm.cloud.networking.zones_settings.v1.model.ScriptLoadOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderResp; -import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResult; -import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValue; -import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderSettingValue; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderSettingValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.model.ServerSideExcludeResp; -import com.ibm.cloud.networking.zones_settings.v1.model.ServerSideExcludeRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.TlsClientAuthResp; -import com.ibm.cloud.networking.zones_settings.v1.model.TlsClientAuthRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.TrueClientIpResp; -import com.ibm.cloud.networking.zones_settings.v1.model.TrueClientIpRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAutomaticHttpsRewritesOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrotliOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateCiphersOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEmailObfuscationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHttp2Options; @@ -118,13 +109,19 @@ import com.ibm.cloud.networking.zones_settings.v1.model.UpdateImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpv6Options; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateLogRetentionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginPostQuantumEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePrefetchPreloadOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateProxyReadTimeoutOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePseudoIpv4Options; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateReplaceInsecureJsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateSecurityHeaderOptions; @@ -136,20 +133,15 @@ import com.ibm.cloud.networking.zones_settings.v1.model.UpdateZoneCnameFlatteningOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateZoneDnssecOptions; import com.ibm.cloud.networking.zones_settings.v1.model.WafResp; -import com.ibm.cloud.networking.zones_settings.v1.model.WafRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.WebsocketsResp; -import com.ibm.cloud.networking.zones_settings.v1.model.WebsocketsRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ZonesCnameFlatteningResp; import com.ibm.cloud.networking.zones_settings.v1.model.ZonesDnssecResp; -import com.ibm.cloud.networking.zones_settings.v1.model.ZonesDnssecRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; import com.ibm.cloud.sdk.core.http.Response; import com.ibm.cloud.sdk.core.service.exception.ServiceResponseException; import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.sdk.core.util.CredentialUtils; import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -173,6 +165,7 @@ public class ZonesSettingsIT extends SdkIntegrationTestBase { * This method provides our config filename to the base class. */ + @Override public String getConfigFilename() { return "../../cloud_internet_services.env"; } @@ -1506,6 +1499,464 @@ public void testUpdateCiphers() throws Exception { } } + @Test + public void testGetOpportunisticOnion() throws Exception { + try { + GetOpportunisticOnionOptions getOpportunisticOnionOptions = new GetOpportunisticOnionOptions(); + + // Invoke operation + Response response = service.getOpportunisticOnion(getOpportunisticOnionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + OpportunisticOnionResp opportunisticOnionRespResult = response.getResult(); + + assertNotNull(opportunisticOnionRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateOpportunisticOnion() throws Exception { + try { + // Get current value + GetOpportunisticOnionOptions getOptions = new GetOpportunisticOnionOptions(); + Response getResponse = service.getOpportunisticOnion(getOptions).execute(); + OpportunisticOnionResp currentResp = getResponse.getResult(); + String currentValue = currentResp.getResult().getValue(); + + // Toggle value + String newValue = "on".equals(currentValue) ? "off" : "on"; + + UpdateOpportunisticOnionOptions updateOpportunisticOnionOptions = new UpdateOpportunisticOnionOptions.Builder() + .value(newValue) + .build(); + + // Invoke operation + Response response = service.updateOpportunisticOnion(updateOpportunisticOnionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + OpportunisticOnionResp opportunisticOnionRespResult = response.getResult(); + + assertNotNull(opportunisticOnionRespResult); + assertTrue(opportunisticOnionRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetBrotli() throws Exception { + try { + GetBrotliOptions getBrotliOptions = new GetBrotliOptions(); + + // Invoke operation + Response response = service.getBrotli(getBrotliOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + BrotliResp brotliRespResult = response.getResult(); + + assertNotNull(brotliRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateBrotli() throws Exception { + try { + // Get current value + GetBrotliOptions getOptions = new GetBrotliOptions(); + Response getResponse = service.getBrotli(getOptions).execute(); + BrotliResp currentResp = getResponse.getResult(); + String currentValue = currentResp.getResult().getValue(); + + // Toggle value + String newValue = "on".equals(currentValue) ? "off" : "on"; + + UpdateBrotliOptions updateBrotliOptions = new UpdateBrotliOptions.Builder() + .value(newValue) + .build(); + + // Invoke operation + Response response = service.updateBrotli(updateBrotliOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + BrotliResp brotliRespResult = response.getResult(); + + assertNotNull(brotliRespResult); + assertTrue(brotliRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetProxyReadTimeout() throws Exception { + try { + GetProxyReadTimeoutOptions getProxyReadTimeoutOptions = new GetProxyReadTimeoutOptions(); + + // Invoke operation + Response response = service.getProxyReadTimeout(getProxyReadTimeoutOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + ProxyReadTimeoutResp proxyReadTimeoutRespResult = response.getResult(); + + assertNotNull(proxyReadTimeoutRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateProxyReadTimeout() throws Exception { + try { + UpdateProxyReadTimeoutOptions updateProxyReadTimeoutOptions = new UpdateProxyReadTimeoutOptions.Builder() + .value(100.0) + .build(); + + // Invoke operation + Response response = service.updateProxyReadTimeout(updateProxyReadTimeoutOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + ProxyReadTimeoutResp proxyReadTimeoutRespResult = response.getResult(); + + assertNotNull(proxyReadTimeoutRespResult); + assertTrue(proxyReadTimeoutRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetOriginMaxHttpVersion() throws Exception { + try { + GetOriginMaxHttpVersionOptions getOriginMaxHttpVersionOptions = new GetOriginMaxHttpVersionOptions(); + + // Invoke operation + Response response = service.getOriginMaxHttpVersion(getOriginMaxHttpVersionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + OriginMaxHttpVersionResp originMaxHttpVersionRespResult = response.getResult(); + + assertNotNull(originMaxHttpVersionRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateOriginMaxHttpVersion() throws Exception { + try { + // Get current value + GetOriginMaxHttpVersionOptions getOptions = new GetOriginMaxHttpVersionOptions(); + Response getResponse = service.getOriginMaxHttpVersion(getOptions).execute(); + OriginMaxHttpVersionResp currentResp = getResponse.getResult(); + String currentValue = currentResp.getResult().getValue(); + + // Toggle value between "2" and "1" + String newValue = "2".equals(currentValue) ? "1" : "2"; + + UpdateOriginMaxHttpVersionOptions updateOriginMaxHttpVersionOptions = new UpdateOriginMaxHttpVersionOptions.Builder() + .value(newValue) + .build(); + + // Invoke operation + Response response = service.updateOriginMaxHttpVersion(updateOriginMaxHttpVersionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + OriginMaxHttpVersionResp originMaxHttpVersionRespResult = response.getResult(); + + assertNotNull(originMaxHttpVersionRespResult); + assertTrue(originMaxHttpVersionRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetOriginPostQuantumEncryption() throws Exception { + try { + GetOriginPostQuantumEncryptionOptions getOriginPostQuantumEncryptionOptions = new GetOriginPostQuantumEncryptionOptions(); + + // Invoke operation + Response response = service.getOriginPostQuantumEncryption(getOriginPostQuantumEncryptionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + OriginPostQuantumEncryptionResp originPostQuantumEncryptionRespResult = response.getResult(); + + assertNotNull(originPostQuantumEncryptionRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateOriginPostQuantumEncryption() throws Exception { + try { + UpdateOriginPostQuantumEncryptionOptions updateOriginPostQuantumEncryptionOptions = new UpdateOriginPostQuantumEncryptionOptions.Builder() + .value(UpdateOriginPostQuantumEncryptionOptions.Value.PREFERRED) + .build(); + + // Invoke operation + Response response = service.updateOriginPostQuantumEncryption(updateOriginPostQuantumEncryptionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + OriginPostQuantumEncryptionResp originPostQuantumEncryptionRespResult = response.getResult(); + + assertNotNull(originPostQuantumEncryptionRespResult); + assertTrue(originPostQuantumEncryptionRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetLogRetention() throws Exception { + try { + GetLogRetentionOptions getLogRetentionOptions = new GetLogRetentionOptions.Builder() + .crn(crn) + .zoneIdentifier(zoneIdentifier) + .build(); + + // Invoke operation + Response response = service.getLogRetention(getLogRetentionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + LogRetentionResp logRetentionRespResult = response.getResult(); + + assertNotNull(logRetentionRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateLogRetention() throws Exception { + try { + // Get current value + GetLogRetentionOptions getOptions = new GetLogRetentionOptions.Builder() + .crn(crn) + .zoneIdentifier(zoneIdentifier) + .build(); + Response getResponse = service.getLogRetention(getOptions).execute(); + LogRetentionResp currentResp = getResponse.getResult(); + Boolean currentFlag = currentResp.getResult().isFlag(); + + // Toggle value + Boolean newFlag = !Boolean.TRUE.equals(currentFlag); + + UpdateLogRetentionOptions updateLogRetentionOptions = new UpdateLogRetentionOptions.Builder() + .crn(crn) + .zoneIdentifier(zoneIdentifier) + .flag(newFlag) + .build(); + + // Invoke operation + Response response = service.updateLogRetention(updateLogRetentionOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + LogRetentionResp logRetentionRespResult = response.getResult(); + + assertNotNull(logRetentionRespResult); + assertTrue(logRetentionRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetBotManagement() throws Exception { + try { + GetBotManagementOptions getBotManagementOptions = new GetBotManagementOptions(); + + // Invoke operation + Response response = service.getBotManagement(getBotManagementOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + BotMgtResp botMgtRespResult = response.getResult(); + + assertNotNull(botMgtRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateBotManagement() throws Exception { + try { + // Get current settings + GetBotManagementOptions getOptions = new GetBotManagementOptions(); + Response getResponse = service.getBotManagement(getOptions).execute(); + BotMgtResp currentResp = getResponse.getResult(); + BotMgtSettings currentSettings = currentResp.getResult(); + + UpdateBotManagementOptions updateBotManagementOptions = new UpdateBotManagementOptions.Builder() + .sessionScore(currentSettings.sessionScore()) + .enableJs(currentSettings.enableJs()) + .useLatestModel(currentSettings.useLatestModel()) + .aiBotsProtection(currentSettings.aiBotsProtection()) + .build(); + + // Invoke operation + Response response = service.updateBotManagement(updateBotManagementOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + BotMgtResp botMgtRespResult = response.getResult(); + + assertNotNull(botMgtRespResult); + assertTrue(botMgtRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetReplaceInsecureJs() throws Exception { + try { + GetReplaceInsecureJsOptions getReplaceInsecureJsOptions = new GetReplaceInsecureJsOptions(); + + // Invoke operation + Response response = service.getReplaceInsecureJs(getReplaceInsecureJsOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + ReplaceInsecureJsResp replaceInsecureJsRespResult = response.getResult(); + + assertNotNull(replaceInsecureJsRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateReplaceInsecureJs() throws Exception { + try { + // Get current value + GetReplaceInsecureJsOptions getOptions = new GetReplaceInsecureJsOptions(); + Response getResponse = service.getReplaceInsecureJs(getOptions).execute(); + ReplaceInsecureJsResp currentResp = getResponse.getResult(); + String currentValue = currentResp.getResult().getValue(); + + // Toggle value + String newValue = "on".equals(currentValue) ? "off" : "on"; + + UpdateReplaceInsecureJsOptions updateReplaceInsecureJsOptions = new UpdateReplaceInsecureJsOptions.Builder() + .value(newValue) + .build(); + + // Invoke operation + Response response = service.updateReplaceInsecureJs(updateReplaceInsecureJsOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + ReplaceInsecureJsResp replaceInsecureJsRespResult = response.getResult(); + + assertNotNull(replaceInsecureJsRespResult); + assertTrue(replaceInsecureJsRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testGetEmailObfuscation() throws Exception { + try { + GetEmailObfuscationOptions getEmailObfuscationOptions = new GetEmailObfuscationOptions(); + + // Invoke operation + Response response = service.getEmailObfuscation(getEmailObfuscationOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + EmailObfuscationResp emailObfuscationRespResult = response.getResult(); + + assertNotNull(emailObfuscationRespResult); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + + @Test + public void testUpdateEmailObfuscation() throws Exception { + try { + // Get current value + GetEmailObfuscationOptions getOptions = new GetEmailObfuscationOptions(); + Response getResponse = service.getEmailObfuscation(getOptions).execute(); + EmailObfuscationResp currentResp = getResponse.getResult(); + String currentValue = currentResp.getResult().getValue(); + + // Toggle value + String newValue = "on".equals(currentValue) ? "off" : "on"; + + UpdateEmailObfuscationOptions updateEmailObfuscationOptions = new UpdateEmailObfuscationOptions.Builder() + .value(newValue) + .build(); + + // Invoke operation + Response response = service.updateEmailObfuscation(updateEmailObfuscationOptions).execute(); + // Validate response + assertNotNull(response); + assertEquals(response.getStatusCode(), 200); + + EmailObfuscationResp emailObfuscationRespResult = response.getResult(); + + assertNotNull(emailObfuscationRespResult); + assertTrue(emailObfuscationRespResult.isSuccess()); + } catch (ServiceResponseException e) { + fail(String.format("Service returned status code %d: %s\nError details: %s", + e.getStatusCode(), e.getMessage(), e.getDebuggingInfo())); + } + } + @AfterClass public void tearDown() { // Add any clean up logic here diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsTest.java index 2719b0004..34546b172 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/ZonesSettingsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,13 +10,23 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1; +import com.ibm.cloud.sdk.core.http.Response; +import com.ibm.cloud.sdk.core.security.Authenticator; +import com.ibm.cloud.sdk.core.security.NoAuthAuthenticator; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.ZonesSettings; import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsResp; import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesResp; import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtResp; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtSettings; +import com.ibm.cloud.networking.zones_settings.v1.model.BrotliResp; +import com.ibm.cloud.networking.zones_settings.v1.model.BrotliRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckResp; import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ChallengeTtlResp; @@ -24,11 +34,16 @@ import com.ibm.cloud.networking.zones_settings.v1.model.CiphersResp; import com.ibm.cloud.networking.zones_settings.v1.model.CiphersRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.CnameFlatteningResponse; +import com.ibm.cloud.networking.zones_settings.v1.model.EmailObfuscationResp; +import com.ibm.cloud.networking.zones_settings.v1.model.EmailObfuscationRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.GetAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetAutomaticHttpsRewritesOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBrotliOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetCiphersOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetEmailObfuscationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetHttp2Options; @@ -37,13 +52,19 @@ import com.ibm.cloud.networking.zones_settings.v1.model.GetImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpv6Options; +import com.ibm.cloud.networking.zones_settings.v1.model.GetLogRetentionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginPostQuantumEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetPrefetchPreloadOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.GetProxyReadTimeoutOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetPseudoIpv4Options; +import com.ibm.cloud.networking.zones_settings.v1.model.GetReplaceInsecureJsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.GetSecurityHeaderOptions; @@ -68,6 +89,8 @@ import com.ibm.cloud.networking.zones_settings.v1.model.IpGeolocationRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6Resp; import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6RespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.LogRetentionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.LogRetentionRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadResp; import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MinTlsVersionResp; @@ -82,12 +105,22 @@ import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionResp; import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticOnionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticOnionRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruResp; import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginMaxHttpVersionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginMaxHttpVersionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginPostQuantumEncryptionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginPostQuantumEncryptionRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadResp; import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadRespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.ProxyReadTimeoutResp; +import com.ibm.cloud.networking.zones_settings.v1.model.ProxyReadTimeoutRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4Resp; import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4RespResult; +import com.ibm.cloud.networking.zones_settings.v1.model.ReplaceInsecureJsResp; +import com.ibm.cloud.networking.zones_settings.v1.model.ReplaceInsecureJsRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingResp; import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.ScriptLoadOptimizationResp; @@ -106,9 +139,12 @@ import com.ibm.cloud.networking.zones_settings.v1.model.TrueClientIpRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAutomaticHttpsRewritesOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrotliOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateCiphersOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEmailObfuscationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHttp2Options; @@ -117,13 +153,19 @@ import com.ibm.cloud.networking.zones_settings.v1.model.UpdateImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpv6Options; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateLogRetentionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginPostQuantumEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePrefetchPreloadOptions; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateProxyReadTimeoutOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePseudoIpv4Options; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateReplaceInsecureJsOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateSecurityHeaderOptions; @@ -142,15 +184,8 @@ import com.ibm.cloud.networking.zones_settings.v1.model.ZonesDnssecResp; import com.ibm.cloud.networking.zones_settings.v1.model.ZonesDnssecRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.http.Response; -import com.ibm.cloud.sdk.core.security.Authenticator; -import com.ibm.cloud.sdk.core.security.NoAuthAuthenticator; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; -import com.ibm.cloud.sdk.core.util.EnvironmentUtils; import java.io.IOException; import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -173,2308 +208,3466 @@ public class ZonesSettingsTest { protected MockWebServer server; protected ZonesSettings zonesSettingsService; - public void constructClientService() throws Throwable { - System.setProperty("TESTSERVICE_AUTH_TYPE", "noAuth"); - final String serviceName = "testService"; - // set mock values for global params - String crn = "testString"; - String zoneIdentifier = "testString"; - - zonesSettingsService = ZonesSettings.newInstance(crn, zoneIdentifier, serviceName); - String url = server.url("/").toString(); - zonesSettingsService.setServiceUrl(url); - } - - /** - * Negative Test - construct the service with a null authenticator. - */ + // Construct the service with a null authenticator (negative test) @Test(expectedExceptions = IllegalArgumentException.class) public void testConstructorWithNullAuthenticator() throws Throwable { final String serviceName = "testService"; - // set mock values for global params + // Set mock values for global params String crn = "testString"; String zoneIdentifier = "testString"; - new ZonesSettings(crn, zoneIdentifier, serviceName, null); } + // Test the getter for the crn global parameter @Test public void testGetCrn() throws Throwable { - constructClientService(); assertEquals(zonesSettingsService.getCrn(), "testString"); } + // Test the getter for the zoneIdentifier global parameter @Test public void testGetZoneIdentifier() throws Throwable { - constructClientService(); assertEquals(zonesSettingsService.getZoneIdentifier(), "testString"); } + // Test the getZoneDnssec operation with a valid options model parameter @Test public void testGetZoneDnssecWOptions() throws Throwable { - // Schedule some responses. + // Register a mock response String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"status\": \"active\", \"flags\": 257, \"algorithm\": \"13\", \"key_type\": \"ECDSAP256SHA256\", \"digest_type\": \"2\", \"digest_algorithm\": \"SHA256\", \"digest\": \"48E939042E82C22542CB377B580DFDC52A361CEFDC72E7F9107E2B6BD9306A45\", \"ds\": \"example.com. 3600 IN DS 16953 13 2 248E939042E82C22542CB377B580DFDC52A361CEFDC72E7F9107E2B6BD9306A45\", \"key_tag\": 42, \"public_key\": \"oXiGYrSTO+LSCJ3mohc8EP+CzF9KxBj8/ydXJ22pKuZP3VAC3/Md/k7xZfz470CoRyZJ6gV6vml07IC3d8xqhA==\"}}"; - String getZoneDnssecPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/dnssec", "UTF-8").replace("%2F", "/"); - + String getZoneDnssecPath = "/v1/testString/zones/testString/dnssec"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetZoneDnssecOptions model GetZoneDnssecOptions getZoneDnssecOptionsModel = new GetZoneDnssecOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getZoneDnssec() with a valid options model and verify the result Response response = zonesSettingsService.getZoneDnssec(getZoneDnssecOptionsModel).execute(); assertNotNull(response); ZonesDnssecResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getZoneDnssecPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getZoneDnssecPath); + // Test the getZoneDnssec operation with and without retries enabled + @Test + public void testGetZoneDnssecWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetZoneDnssecWOptions(); + + zonesSettingsService.disableRetries(); + testGetZoneDnssecWOptions(); } + // Test the updateZoneDnssec operation with a valid options model parameter @Test public void testUpdateZoneDnssecWOptions() throws Throwable { - // Schedule some responses. + // Register a mock response String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"status\": \"active\", \"flags\": 257, \"algorithm\": \"13\", \"key_type\": \"ECDSAP256SHA256\", \"digest_type\": \"2\", \"digest_algorithm\": \"SHA256\", \"digest\": \"48E939042E82C22542CB377B580DFDC52A361CEFDC72E7F9107E2B6BD9306A45\", \"ds\": \"example.com. 3600 IN DS 16953 13 2 248E939042E82C22542CB377B580DFDC52A361CEFDC72E7F9107E2B6BD9306A45\", \"key_tag\": 42, \"public_key\": \"oXiGYrSTO+LSCJ3mohc8EP+CzF9KxBj8/ydXJ22pKuZP3VAC3/Md/k7xZfz470CoRyZJ6gV6vml07IC3d8xqhA==\"}}"; - String updateZoneDnssecPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/dnssec", "UTF-8").replace("%2F", "/"); - + String updateZoneDnssecPath = "/v1/testString/zones/testString/dnssec"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateZoneDnssecOptions model UpdateZoneDnssecOptions updateZoneDnssecOptionsModel = new UpdateZoneDnssecOptions.Builder() - .status("active") - .build(); + .status("active") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateZoneDnssec() with a valid options model and verify the result Response response = zonesSettingsService.updateZoneDnssec(updateZoneDnssecOptionsModel).execute(); assertNotNull(response); ZonesDnssecResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateZoneDnssecPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateZoneDnssecPath); + // Test the updateZoneDnssec operation with and without retries enabled + @Test + public void testUpdateZoneDnssecWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateZoneDnssecWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateZoneDnssecWOptions(); } + // Test the getZoneCnameFlattening operation with a valid options model parameter @Test public void testGetZoneCnameFlatteningWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"id\": \"cname_flattening\", \"value\": \"flatten_all\", \"modified_on\": \"2019-01-01T12:00:00\", \"editable\": true}}"; - String getZoneCnameFlatteningPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/cname_flattening", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"id\": \"cname_flattening\", \"value\": \"flatten_all\", \"modified_on\": \"2014-01-01T05:20:00.123Z\", \"editable\": true}}"; + String getZoneCnameFlatteningPath = "/v1/testString/zones/testString/settings/cname_flattening"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetZoneCnameFlatteningOptions model GetZoneCnameFlatteningOptions getZoneCnameFlatteningOptionsModel = new GetZoneCnameFlatteningOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getZoneCnameFlattening() with a valid options model and verify the result Response response = zonesSettingsService.getZoneCnameFlattening(getZoneCnameFlatteningOptionsModel).execute(); assertNotNull(response); ZonesCnameFlatteningResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getZoneCnameFlatteningPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getZoneCnameFlatteningPath); + // Test the getZoneCnameFlattening operation with and without retries enabled + @Test + public void testGetZoneCnameFlatteningWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetZoneCnameFlatteningWOptions(); + + zonesSettingsService.disableRetries(); + testGetZoneCnameFlatteningWOptions(); } + // Test the updateZoneCnameFlattening operation with a valid options model parameter @Test public void testUpdateZoneCnameFlatteningWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"id\": \"cname_flattening\", \"value\": \"flatten_all\", \"modified_on\": \"2019-01-01T12:00:00\", \"editable\": true}}"; - String updateZoneCnameFlatteningPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/cname_flattening", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"id\": \"cname_flattening\", \"value\": \"flatten_all\", \"modified_on\": \"2014-01-01T05:20:00.123Z\", \"editable\": true}}"; + String updateZoneCnameFlatteningPath = "/v1/testString/zones/testString/settings/cname_flattening"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateZoneCnameFlatteningOptions model UpdateZoneCnameFlatteningOptions updateZoneCnameFlatteningOptionsModel = new UpdateZoneCnameFlatteningOptions.Builder() - .value("flatten_all") - .build(); + .value("flatten_all") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateZoneCnameFlattening() with a valid options model and verify the result Response response = zonesSettingsService.updateZoneCnameFlattening(updateZoneCnameFlatteningOptionsModel).execute(); assertNotNull(response); ZonesCnameFlatteningResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateZoneCnameFlatteningPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateZoneCnameFlatteningPath); + // Test the updateZoneCnameFlattening operation with and without retries enabled + @Test + public void testUpdateZoneCnameFlatteningWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateZoneCnameFlatteningWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateZoneCnameFlatteningWOptions(); } + // Test the getOpportunisticEncryption operation with a valid options model parameter @Test public void testGetOpportunisticEncryptionWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"opportunistic_encryption\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getOpportunisticEncryptionPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/opportunistic_encryption", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"opportunistic_encryption\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getOpportunisticEncryptionPath = "/v1/testString/zones/testString/settings/opportunistic_encryption"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetOpportunisticEncryptionOptions model GetOpportunisticEncryptionOptions getOpportunisticEncryptionOptionsModel = new GetOpportunisticEncryptionOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getOpportunisticEncryption() with a valid options model and verify the result Response response = zonesSettingsService.getOpportunisticEncryption(getOpportunisticEncryptionOptionsModel).execute(); assertNotNull(response); OpportunisticEncryptionResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getOpportunisticEncryptionPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getOpportunisticEncryptionPath); + // Test the getOpportunisticEncryption operation with and without retries enabled + @Test + public void testGetOpportunisticEncryptionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetOpportunisticEncryptionWOptions(); + + zonesSettingsService.disableRetries(); + testGetOpportunisticEncryptionWOptions(); } + // Test the updateOpportunisticEncryption operation with a valid options model parameter @Test public void testUpdateOpportunisticEncryptionWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"opportunistic_encryption\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateOpportunisticEncryptionPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/opportunistic_encryption", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"opportunistic_encryption\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateOpportunisticEncryptionPath = "/v1/testString/zones/testString/settings/opportunistic_encryption"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateOpportunisticEncryptionOptions model UpdateOpportunisticEncryptionOptions updateOpportunisticEncryptionOptionsModel = new UpdateOpportunisticEncryptionOptions.Builder() - .value("false") - .build(); + .value("off") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateOpportunisticEncryption() with a valid options model and verify the result Response response = zonesSettingsService.updateOpportunisticEncryption(updateOpportunisticEncryptionOptionsModel).execute(); assertNotNull(response); OpportunisticEncryptionResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateOpportunisticEncryptionPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } + + // Test the updateOpportunisticEncryption operation with and without retries enabled + @Test + public void testUpdateOpportunisticEncryptionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateOpportunisticEncryptionWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateOpportunisticEncryptionWOptions(); + } + + // Test the getOpportunisticOnion operation with a valid options model parameter + @Test + public void testGetOpportunisticOnionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"opportunistic_onion\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getOpportunisticOnionPath = "/v1/testString/zones/testString/settings/opportunistic_onion"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetOpportunisticOnionOptions model + GetOpportunisticOnionOptions getOpportunisticOnionOptionsModel = new GetOpportunisticOnionOptions(); + + // Invoke getOpportunisticOnion() with a valid options model and verify the result + Response response = zonesSettingsService.getOpportunisticOnion(getOpportunisticOnionOptionsModel).execute(); + assertNotNull(response); + OpportunisticOnionResp responseObj = response.getResult(); + assertNotNull(responseObj); - // Check request path + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateOpportunisticEncryptionPath); + assertEquals(parsedPath, getOpportunisticOnionPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); } + // Test the getOpportunisticOnion operation with and without retries enabled @Test - public void testGetChallengeTtlWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"challenge_ttl\", \"value\": 1800, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getChallengeTtlPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/challenge_ttl", "UTF-8").replace("%2F", "/"); + public void testGetOpportunisticOnionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetOpportunisticOnionWOptions(); + zonesSettingsService.disableRetries(); + testGetOpportunisticOnionWOptions(); + } + + // Test the updateOpportunisticOnion operation with a valid options model parameter + @Test + public void testUpdateOpportunisticOnionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"opportunistic_onion\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateOpportunisticOnionPath = "/v1/testString/zones/testString/settings/opportunistic_onion"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); - constructClientService(); + // Construct an instance of the UpdateOpportunisticOnionOptions model + UpdateOpportunisticOnionOptions updateOpportunisticOnionOptionsModel = new UpdateOpportunisticOnionOptions.Builder() + .value("off") + .build(); + + // Invoke updateOpportunisticOnion() with a valid options model and verify the result + Response response = zonesSettingsService.updateOpportunisticOnion(updateOpportunisticOnionOptionsModel).execute(); + assertNotNull(response); + OpportunisticOnionResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PATCH"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateOpportunisticOnionPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateOpportunisticOnion operation with and without retries enabled + @Test + public void testUpdateOpportunisticOnionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateOpportunisticOnionWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateOpportunisticOnionWOptions(); + } + + // Test the getChallengeTtl operation with a valid options model parameter + @Test + public void testGetChallengeTtlWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"challenge_ttl\", \"value\": 1800, \"editable\": true, \"modified_on\": \"2018-09-17T07:21:39.844Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getChallengeTtlPath = "/v1/testString/zones/testString/settings/challenge_ttl"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetChallengeTtlOptions model GetChallengeTtlOptions getChallengeTtlOptionsModel = new GetChallengeTtlOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getChallengeTtl() with a valid options model and verify the result Response response = zonesSettingsService.getChallengeTtl(getChallengeTtlOptionsModel).execute(); assertNotNull(response); ChallengeTtlResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getChallengeTtlPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getChallengeTtlPath); + // Test the getChallengeTtl operation with and without retries enabled + @Test + public void testGetChallengeTtlWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetChallengeTtlWOptions(); + + zonesSettingsService.disableRetries(); + testGetChallengeTtlWOptions(); } + // Test the updateChallengeTtl operation with a valid options model parameter @Test public void testUpdateChallengeTtlWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"challenge_ttl\", \"value\": 1800, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateChallengeTtlPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/challenge_ttl", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"challenge_ttl\", \"value\": 1800, \"editable\": true, \"modified_on\": \"2018-09-17T07:21:39.844Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateChallengeTtlPath = "/v1/testString/zones/testString/settings/challenge_ttl"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateChallengeTtlOptions model UpdateChallengeTtlOptions updateChallengeTtlOptionsModel = new UpdateChallengeTtlOptions.Builder() - .value(Long.valueOf("1800")) - .build(); + .value(Long.valueOf("1800")) + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateChallengeTtl() with a valid options model and verify the result Response response = zonesSettingsService.updateChallengeTtl(updateChallengeTtlOptionsModel).execute(); assertNotNull(response); ChallengeTtlResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateChallengeTtlPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateChallengeTtlPath); + // Test the updateChallengeTtl operation with and without retries enabled + @Test + public void testUpdateChallengeTtlWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateChallengeTtlWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateChallengeTtlWOptions(); } + // Test the getAutomaticHttpsRewrites operation with a valid options model parameter @Test public void testGetAutomaticHttpsRewritesWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"automatic_https_rewrites\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getAutomaticHttpsRewritesPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/automatic_https_rewrites", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"automatic_https_rewrites\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getAutomaticHttpsRewritesPath = "/v1/testString/zones/testString/settings/automatic_https_rewrites"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetAutomaticHttpsRewritesOptions model GetAutomaticHttpsRewritesOptions getAutomaticHttpsRewritesOptionsModel = new GetAutomaticHttpsRewritesOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getAutomaticHttpsRewrites() with a valid options model and verify the result Response response = zonesSettingsService.getAutomaticHttpsRewrites(getAutomaticHttpsRewritesOptionsModel).execute(); assertNotNull(response); AutomaticHttpsRewritesResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getAutomaticHttpsRewritesPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getAutomaticHttpsRewritesPath); + // Test the getAutomaticHttpsRewrites operation with and without retries enabled + @Test + public void testGetAutomaticHttpsRewritesWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetAutomaticHttpsRewritesWOptions(); + + zonesSettingsService.disableRetries(); + testGetAutomaticHttpsRewritesWOptions(); } + // Test the updateAutomaticHttpsRewrites operation with a valid options model parameter @Test public void testUpdateAutomaticHttpsRewritesWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"automatic_https_rewrites\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateAutomaticHttpsRewritesPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/automatic_https_rewrites", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"automatic_https_rewrites\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateAutomaticHttpsRewritesPath = "/v1/testString/zones/testString/settings/automatic_https_rewrites"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateAutomaticHttpsRewritesOptions model UpdateAutomaticHttpsRewritesOptions updateAutomaticHttpsRewritesOptionsModel = new UpdateAutomaticHttpsRewritesOptions.Builder() - .value("false") - .build(); + .value("off") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateAutomaticHttpsRewrites() with a valid options model and verify the result Response response = zonesSettingsService.updateAutomaticHttpsRewrites(updateAutomaticHttpsRewritesOptionsModel).execute(); assertNotNull(response); AutomaticHttpsRewritesResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateAutomaticHttpsRewritesPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateAutomaticHttpsRewritesPath); + // Test the updateAutomaticHttpsRewrites operation with and without retries enabled + @Test + public void testUpdateAutomaticHttpsRewritesWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateAutomaticHttpsRewritesWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateAutomaticHttpsRewritesWOptions(); } + // Test the getTrueClientIp operation with a valid options model parameter @Test public void testGetTrueClientIpWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"true_client_ip_header\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getTrueClientIpPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/true_client_ip_header", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"true_client_ip_header\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getTrueClientIpPath = "/v1/testString/zones/testString/settings/true_client_ip_header"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetTrueClientIpOptions model GetTrueClientIpOptions getTrueClientIpOptionsModel = new GetTrueClientIpOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getTrueClientIp() with a valid options model and verify the result Response response = zonesSettingsService.getTrueClientIp(getTrueClientIpOptionsModel).execute(); assertNotNull(response); TrueClientIpResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getTrueClientIpPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getTrueClientIpPath); + // Test the getTrueClientIp operation with and without retries enabled + @Test + public void testGetTrueClientIpWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetTrueClientIpWOptions(); + + zonesSettingsService.disableRetries(); + testGetTrueClientIpWOptions(); } + // Test the updateTrueClientIp operation with a valid options model parameter @Test public void testUpdateTrueClientIpWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"true_client_ip_header\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateTrueClientIpPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/true_client_ip_header", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"true_client_ip_header\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateTrueClientIpPath = "/v1/testString/zones/testString/settings/true_client_ip_header"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateTrueClientIpOptions model UpdateTrueClientIpOptions updateTrueClientIpOptionsModel = new UpdateTrueClientIpOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateTrueClientIp() with a valid options model and verify the result Response response = zonesSettingsService.updateTrueClientIp(updateTrueClientIpOptionsModel).execute(); assertNotNull(response); TrueClientIpResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateTrueClientIpPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateTrueClientIpPath); + // Test the updateTrueClientIp operation with and without retries enabled + @Test + public void testUpdateTrueClientIpWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateTrueClientIpWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateTrueClientIpWOptions(); } + // Test the getAlwaysUseHttps operation with a valid options model parameter @Test public void testGetAlwaysUseHttpsWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"always_use_https\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getAlwaysUseHttpsPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/always_use_https", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"always_use_https\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getAlwaysUseHttpsPath = "/v1/testString/zones/testString/settings/always_use_https"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetAlwaysUseHttpsOptions model GetAlwaysUseHttpsOptions getAlwaysUseHttpsOptionsModel = new GetAlwaysUseHttpsOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getAlwaysUseHttps() with a valid options model and verify the result Response response = zonesSettingsService.getAlwaysUseHttps(getAlwaysUseHttpsOptionsModel).execute(); assertNotNull(response); AlwaysUseHttpsResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getAlwaysUseHttpsPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getAlwaysUseHttpsPath); + // Test the getAlwaysUseHttps operation with and without retries enabled + @Test + public void testGetAlwaysUseHttpsWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetAlwaysUseHttpsWOptions(); + + zonesSettingsService.disableRetries(); + testGetAlwaysUseHttpsWOptions(); } + // Test the updateAlwaysUseHttps operation with a valid options model parameter @Test public void testUpdateAlwaysUseHttpsWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"always_use_https\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateAlwaysUseHttpsPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/always_use_https", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"always_use_https\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateAlwaysUseHttpsPath = "/v1/testString/zones/testString/settings/always_use_https"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateAlwaysUseHttpsOptions model UpdateAlwaysUseHttpsOptions updateAlwaysUseHttpsOptionsModel = new UpdateAlwaysUseHttpsOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateAlwaysUseHttps() with a valid options model and verify the result Response response = zonesSettingsService.updateAlwaysUseHttps(updateAlwaysUseHttpsOptionsModel).execute(); assertNotNull(response); AlwaysUseHttpsResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateAlwaysUseHttpsPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateAlwaysUseHttpsPath); + // Test the updateAlwaysUseHttps operation with and without retries enabled + @Test + public void testUpdateAlwaysUseHttpsWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateAlwaysUseHttpsWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateAlwaysUseHttpsWOptions(); } + // Test the getImageSizeOptimization operation with a valid options model parameter @Test public void testGetImageSizeOptimizationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"image_size_optimization\", \"value\": \"lossless\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getImageSizeOptimizationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/image_size_optimization", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"image_size_optimization\", \"value\": \"lossless\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getImageSizeOptimizationPath = "/v1/testString/zones/testString/settings/image_size_optimization"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetImageSizeOptimizationOptions model GetImageSizeOptimizationOptions getImageSizeOptimizationOptionsModel = new GetImageSizeOptimizationOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getImageSizeOptimization() with a valid options model and verify the result Response response = zonesSettingsService.getImageSizeOptimization(getImageSizeOptimizationOptionsModel).execute(); assertNotNull(response); ImageSizeOptimizationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getImageSizeOptimizationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getImageSizeOptimizationPath); + // Test the getImageSizeOptimization operation with and without retries enabled + @Test + public void testGetImageSizeOptimizationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetImageSizeOptimizationWOptions(); + + zonesSettingsService.disableRetries(); + testGetImageSizeOptimizationWOptions(); } + // Test the updateImageSizeOptimization operation with a valid options model parameter @Test public void testUpdateImageSizeOptimizationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"image_size_optimization\", \"value\": \"lossless\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateImageSizeOptimizationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/image_size_optimization", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"image_size_optimization\", \"value\": \"lossless\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateImageSizeOptimizationPath = "/v1/testString/zones/testString/settings/image_size_optimization"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateImageSizeOptimizationOptions model UpdateImageSizeOptimizationOptions updateImageSizeOptimizationOptionsModel = new UpdateImageSizeOptimizationOptions.Builder() - .value("lossless") - .build(); + .value("lossless") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateImageSizeOptimization() with a valid options model and verify the result Response response = zonesSettingsService.updateImageSizeOptimization(updateImageSizeOptimizationOptionsModel).execute(); assertNotNull(response); ImageSizeOptimizationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateImageSizeOptimizationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateImageSizeOptimizationPath); + // Test the updateImageSizeOptimization operation with and without retries enabled + @Test + public void testUpdateImageSizeOptimizationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateImageSizeOptimizationWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateImageSizeOptimizationWOptions(); } + // Test the getScriptLoadOptimization operation with a valid options model parameter @Test public void testGetScriptLoadOptimizationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"script_load_optimization\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getScriptLoadOptimizationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/script_load_optimization", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"script_load_optimization\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getScriptLoadOptimizationPath = "/v1/testString/zones/testString/settings/script_load_optimization"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetScriptLoadOptimizationOptions model GetScriptLoadOptimizationOptions getScriptLoadOptimizationOptionsModel = new GetScriptLoadOptimizationOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getScriptLoadOptimization() with a valid options model and verify the result Response response = zonesSettingsService.getScriptLoadOptimization(getScriptLoadOptimizationOptionsModel).execute(); assertNotNull(response); ScriptLoadOptimizationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getScriptLoadOptimizationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getScriptLoadOptimizationPath); + // Test the getScriptLoadOptimization operation with and without retries enabled + @Test + public void testGetScriptLoadOptimizationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetScriptLoadOptimizationWOptions(); + + zonesSettingsService.disableRetries(); + testGetScriptLoadOptimizationWOptions(); } + // Test the updateScriptLoadOptimization operation with a valid options model parameter @Test public void testUpdateScriptLoadOptimizationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"script_load_optimization\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateScriptLoadOptimizationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/script_load_optimization", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"script_load_optimization\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateScriptLoadOptimizationPath = "/v1/testString/zones/testString/settings/script_load_optimization"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateScriptLoadOptimizationOptions model UpdateScriptLoadOptimizationOptions updateScriptLoadOptimizationOptionsModel = new UpdateScriptLoadOptimizationOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateScriptLoadOptimization() with a valid options model and verify the result Response response = zonesSettingsService.updateScriptLoadOptimization(updateScriptLoadOptimizationOptionsModel).execute(); assertNotNull(response); ScriptLoadOptimizationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateScriptLoadOptimizationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateScriptLoadOptimizationPath); + // Test the updateScriptLoadOptimization operation with and without retries enabled + @Test + public void testUpdateScriptLoadOptimizationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateScriptLoadOptimizationWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateScriptLoadOptimizationWOptions(); } + // Test the getImageLoadOptimization operation with a valid options model parameter @Test public void testGetImageLoadOptimizationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"image_load_optimization\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getImageLoadOptimizationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/image_load_optimization", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"image_load_optimization\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getImageLoadOptimizationPath = "/v1/testString/zones/testString/settings/image_load_optimization"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetImageLoadOptimizationOptions model GetImageLoadOptimizationOptions getImageLoadOptimizationOptionsModel = new GetImageLoadOptimizationOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getImageLoadOptimization() with a valid options model and verify the result Response response = zonesSettingsService.getImageLoadOptimization(getImageLoadOptimizationOptionsModel).execute(); assertNotNull(response); ImageLoadOptimizationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getImageLoadOptimizationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getImageLoadOptimizationPath); + // Test the getImageLoadOptimization operation with and without retries enabled + @Test + public void testGetImageLoadOptimizationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetImageLoadOptimizationWOptions(); + + zonesSettingsService.disableRetries(); + testGetImageLoadOptimizationWOptions(); } + // Test the updateImageLoadOptimization operation with a valid options model parameter @Test public void testUpdateImageLoadOptimizationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"image_load_optimization\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateImageLoadOptimizationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/image_load_optimization", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"image_load_optimization\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateImageLoadOptimizationPath = "/v1/testString/zones/testString/settings/image_load_optimization"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateImageLoadOptimizationOptions model UpdateImageLoadOptimizationOptions updateImageLoadOptimizationOptionsModel = new UpdateImageLoadOptimizationOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateImageLoadOptimization() with a valid options model and verify the result Response response = zonesSettingsService.updateImageLoadOptimization(updateImageLoadOptimizationOptionsModel).execute(); assertNotNull(response); ImageLoadOptimizationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateImageLoadOptimizationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateImageLoadOptimizationPath); + // Test the updateImageLoadOptimization operation with and without retries enabled + @Test + public void testUpdateImageLoadOptimizationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateImageLoadOptimizationWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateImageLoadOptimizationWOptions(); } + // Test the getMinify operation with a valid options model parameter @Test public void testGetMinifyWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"minify\", \"value\": {\"css\": \"true\", \"html\": \"true\", \"js\": \"true\"}, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getMinifyPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/minify", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"minify\", \"value\": {\"css\": \"on\", \"html\": \"on\", \"js\": \"on\"}, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getMinifyPath = "/v1/testString/zones/testString/settings/minify"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetMinifyOptions model GetMinifyOptions getMinifyOptionsModel = new GetMinifyOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getMinify() with a valid options model and verify the result Response response = zonesSettingsService.getMinify(getMinifyOptionsModel).execute(); assertNotNull(response); MinifyResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getMinifyPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getMinifyPath); + // Test the getMinify operation with and without retries enabled + @Test + public void testGetMinifyWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetMinifyWOptions(); + + zonesSettingsService.disableRetries(); + testGetMinifyWOptions(); } + // Test the updateMinify operation with a valid options model parameter @Test public void testUpdateMinifyWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"minify\", \"value\": {\"css\": \"true\", \"html\": \"true\", \"js\": \"true\"}, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateMinifyPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/minify", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"minify\", \"value\": {\"css\": \"on\", \"html\": \"on\", \"js\": \"on\"}, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateMinifyPath = "/v1/testString/zones/testString/settings/minify"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the MinifySettingValue model MinifySettingValue minifySettingValueModel = new MinifySettingValue.Builder() - .css("false") - .html("false") - .js("false") - .build(); + .css("off") + .html("off") + .js("off") + .build(); // Construct an instance of the UpdateMinifyOptions model UpdateMinifyOptions updateMinifyOptionsModel = new UpdateMinifyOptions.Builder() - .value(minifySettingValueModel) - .build(); + .value(minifySettingValueModel) + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateMinify() with a valid options model and verify the result Response response = zonesSettingsService.updateMinify(updateMinifyOptionsModel).execute(); assertNotNull(response); MinifyResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateMinifyPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateMinifyPath); + // Test the updateMinify operation with and without retries enabled + @Test + public void testUpdateMinifyWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateMinifyWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateMinifyWOptions(); } + // Test the getMinTlsVersion operation with a valid options model parameter @Test public void testGetMinTlsVersionWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"min_tls_version\", \"value\": \"1.2\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getMinTlsVersionPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/min_tls_version", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"min_tls_version\", \"value\": \"1.2\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getMinTlsVersionPath = "/v1/testString/zones/testString/settings/min_tls_version"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetMinTlsVersionOptions model GetMinTlsVersionOptions getMinTlsVersionOptionsModel = new GetMinTlsVersionOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getMinTlsVersion() with a valid options model and verify the result Response response = zonesSettingsService.getMinTlsVersion(getMinTlsVersionOptionsModel).execute(); assertNotNull(response); MinTlsVersionResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getMinTlsVersionPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getMinTlsVersionPath); + // Test the getMinTlsVersion operation with and without retries enabled + @Test + public void testGetMinTlsVersionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetMinTlsVersionWOptions(); + + zonesSettingsService.disableRetries(); + testGetMinTlsVersionWOptions(); } + // Test the updateMinTlsVersion operation with a valid options model parameter @Test public void testUpdateMinTlsVersionWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"min_tls_version\", \"value\": \"1.2\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateMinTlsVersionPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/min_tls_version", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"min_tls_version\", \"value\": \"1.2\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateMinTlsVersionPath = "/v1/testString/zones/testString/settings/min_tls_version"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateMinTlsVersionOptions model UpdateMinTlsVersionOptions updateMinTlsVersionOptionsModel = new UpdateMinTlsVersionOptions.Builder() - .value("1.2") - .build(); + .value("1.2") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateMinTlsVersion() with a valid options model and verify the result Response response = zonesSettingsService.updateMinTlsVersion(updateMinTlsVersionOptionsModel).execute(); assertNotNull(response); MinTlsVersionResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateMinTlsVersionPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateMinTlsVersionPath); + // Test the updateMinTlsVersion operation with and without retries enabled + @Test + public void testUpdateMinTlsVersionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateMinTlsVersionWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateMinTlsVersionWOptions(); } + // Test the getIpGeolocation operation with a valid options model parameter @Test public void testGetIpGeolocationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"ip_geolocation\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getIpGeolocationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/ip_geolocation", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"ip_geolocation\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getIpGeolocationPath = "/v1/testString/zones/testString/settings/ip_geolocation"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetIpGeolocationOptions model GetIpGeolocationOptions getIpGeolocationOptionsModel = new GetIpGeolocationOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getIpGeolocation() with a valid options model and verify the result Response response = zonesSettingsService.getIpGeolocation(getIpGeolocationOptionsModel).execute(); assertNotNull(response); IpGeolocationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getIpGeolocationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getIpGeolocationPath); + // Test the getIpGeolocation operation with and without retries enabled + @Test + public void testGetIpGeolocationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetIpGeolocationWOptions(); + + zonesSettingsService.disableRetries(); + testGetIpGeolocationWOptions(); } + // Test the updateIpGeolocation operation with a valid options model parameter @Test public void testUpdateIpGeolocationWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"ip_geolocation\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateIpGeolocationPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/ip_geolocation", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"ip_geolocation\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateIpGeolocationPath = "/v1/testString/zones/testString/settings/ip_geolocation"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateIpGeolocationOptions model UpdateIpGeolocationOptions updateIpGeolocationOptionsModel = new UpdateIpGeolocationOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateIpGeolocation() with a valid options model and verify the result Response response = zonesSettingsService.updateIpGeolocation(updateIpGeolocationOptionsModel).execute(); assertNotNull(response); IpGeolocationResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateIpGeolocationPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateIpGeolocationPath); + // Test the updateIpGeolocation operation with and without retries enabled + @Test + public void testUpdateIpGeolocationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateIpGeolocationWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateIpGeolocationWOptions(); } + // Test the getServerSideExclude operation with a valid options model parameter @Test public void testGetServerSideExcludeWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"server_side_exclude\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getServerSideExcludePath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/server_side_exclude", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"server_side_exclude\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getServerSideExcludePath = "/v1/testString/zones/testString/settings/server_side_exclude"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetServerSideExcludeOptions model GetServerSideExcludeOptions getServerSideExcludeOptionsModel = new GetServerSideExcludeOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getServerSideExclude() with a valid options model and verify the result Response response = zonesSettingsService.getServerSideExclude(getServerSideExcludeOptionsModel).execute(); assertNotNull(response); ServerSideExcludeResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getServerSideExcludePath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getServerSideExcludePath); + // Test the getServerSideExclude operation with and without retries enabled + @Test + public void testGetServerSideExcludeWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetServerSideExcludeWOptions(); + + zonesSettingsService.disableRetries(); + testGetServerSideExcludeWOptions(); } + // Test the updateServerSideExclude operation with a valid options model parameter @Test public void testUpdateServerSideExcludeWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"server_side_exclude\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateServerSideExcludePath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/server_side_exclude", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"server_side_exclude\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateServerSideExcludePath = "/v1/testString/zones/testString/settings/server_side_exclude"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateServerSideExcludeOptions model UpdateServerSideExcludeOptions updateServerSideExcludeOptionsModel = new UpdateServerSideExcludeOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateServerSideExclude() with a valid options model and verify the result Response response = zonesSettingsService.updateServerSideExclude(updateServerSideExcludeOptionsModel).execute(); assertNotNull(response); ServerSideExcludeResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateServerSideExcludePath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateServerSideExcludePath); + // Test the updateServerSideExclude operation with and without retries enabled + @Test + public void testUpdateServerSideExcludeWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateServerSideExcludeWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateServerSideExcludeWOptions(); } + // Test the getSecurityHeader operation with a valid options model parameter @Test public void testGetSecurityHeaderWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"security_header\", \"value\": {\"strict_transport_security\": {\"enabled\": true, \"max_age\": 86400, \"include_subdomains\": true, \"nosniff\": true}}, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getSecurityHeaderPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/security_header", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"security_header\", \"value\": {\"strict_transport_security\": {\"enabled\": true, \"max_age\": 86400, \"include_subdomains\": true, \"preload\": true, \"nosniff\": true}}, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getSecurityHeaderPath = "/v1/testString/zones/testString/settings/security_header"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetSecurityHeaderOptions model GetSecurityHeaderOptions getSecurityHeaderOptionsModel = new GetSecurityHeaderOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getSecurityHeader() with a valid options model and verify the result Response response = zonesSettingsService.getSecurityHeader(getSecurityHeaderOptionsModel).execute(); assertNotNull(response); SecurityHeaderResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getSecurityHeaderPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getSecurityHeaderPath); + // Test the getSecurityHeader operation with and without retries enabled + @Test + public void testGetSecurityHeaderWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetSecurityHeaderWOptions(); + + zonesSettingsService.disableRetries(); + testGetSecurityHeaderWOptions(); } + // Test the updateSecurityHeader operation with a valid options model parameter @Test public void testUpdateSecurityHeaderWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"security_header\", \"value\": {\"strict_transport_security\": {\"enabled\": true, \"max_age\": 86400, \"include_subdomains\": true, \"nosniff\": true}}, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateSecurityHeaderPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/security_header", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"security_header\", \"value\": {\"strict_transport_security\": {\"enabled\": true, \"max_age\": 86400, \"include_subdomains\": true, \"preload\": true, \"nosniff\": true}}, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateSecurityHeaderPath = "/v1/testString/zones/testString/settings/security_header"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the SecurityHeaderSettingValueStrictTransportSecurity model SecurityHeaderSettingValueStrictTransportSecurity securityHeaderSettingValueStrictTransportSecurityModel = new SecurityHeaderSettingValueStrictTransportSecurity.Builder() - .enabled(true) - .maxAge(Long.valueOf("86400")) - .includeSubdomains(true) - .nosniff(true) - .build(); + .enabled(true) + .maxAge(Long.valueOf("86400")) + .includeSubdomains(true) + .preload(true) + .nosniff(true) + .build(); // Construct an instance of the SecurityHeaderSettingValue model SecurityHeaderSettingValue securityHeaderSettingValueModel = new SecurityHeaderSettingValue.Builder() - .strictTransportSecurity(securityHeaderSettingValueStrictTransportSecurityModel) - .build(); + .strictTransportSecurity(securityHeaderSettingValueStrictTransportSecurityModel) + .build(); // Construct an instance of the UpdateSecurityHeaderOptions model UpdateSecurityHeaderOptions updateSecurityHeaderOptionsModel = new UpdateSecurityHeaderOptions.Builder() - .value(securityHeaderSettingValueModel) - .build(); + .value(securityHeaderSettingValueModel) + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateSecurityHeader() with a valid options model and verify the result Response response = zonesSettingsService.updateSecurityHeader(updateSecurityHeaderOptionsModel).execute(); assertNotNull(response); SecurityHeaderResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateSecurityHeaderPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateSecurityHeaderPath); + // Test the updateSecurityHeader operation with and without retries enabled + @Test + public void testUpdateSecurityHeaderWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateSecurityHeaderWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateSecurityHeaderWOptions(); } + // Test the getMobileRedirect operation with a valid options model parameter @Test public void testGetMobileRedirectWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"mobile_redirect\", \"value\": {\"status\": \"true\", \"mobile_subdomain\": \"m\", \"strip_uri\": false}, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getMobileRedirectPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/mobile_redirect", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"mobile_redirect\", \"value\": {\"status\": \"on\", \"mobile_subdomain\": \"m\", \"strip_uri\": false}, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getMobileRedirectPath = "/v1/testString/zones/testString/settings/mobile_redirect"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetMobileRedirectOptions model GetMobileRedirectOptions getMobileRedirectOptionsModel = new GetMobileRedirectOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getMobileRedirect() with a valid options model and verify the result Response response = zonesSettingsService.getMobileRedirect(getMobileRedirectOptionsModel).execute(); assertNotNull(response); MobileRedirectResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getMobileRedirectPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getMobileRedirectPath); + // Test the getMobileRedirect operation with and without retries enabled + @Test + public void testGetMobileRedirectWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetMobileRedirectWOptions(); + + zonesSettingsService.disableRetries(); + testGetMobileRedirectWOptions(); } + // Test the updateMobileRedirect operation with a valid options model parameter @Test public void testUpdateMobileRedirectWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"mobile_redirect\", \"value\": {\"status\": \"true\", \"mobile_subdomain\": \"m\", \"strip_uri\": false}, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateMobileRedirectPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/mobile_redirect", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"mobile_redirect\", \"value\": {\"status\": \"on\", \"mobile_subdomain\": \"m\", \"strip_uri\": false}, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateMobileRedirectPath = "/v1/testString/zones/testString/settings/mobile_redirect"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the MobileRedirecSettingValue model MobileRedirecSettingValue mobileRedirecSettingValueModel = new MobileRedirecSettingValue.Builder() - .status("true") - .mobileSubdomain("m") - .stripUri(false) - .build(); + .status("on") + .mobileSubdomain("m") + .stripUri(false) + .build(); // Construct an instance of the UpdateMobileRedirectOptions model UpdateMobileRedirectOptions updateMobileRedirectOptionsModel = new UpdateMobileRedirectOptions.Builder() - .value(mobileRedirecSettingValueModel) - .build(); + .value(mobileRedirecSettingValueModel) + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateMobileRedirect() with a valid options model and verify the result Response response = zonesSettingsService.updateMobileRedirect(updateMobileRedirectOptionsModel).execute(); assertNotNull(response); MobileRedirectResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateMobileRedirectPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateMobileRedirectPath); + // Test the updateMobileRedirect operation with and without retries enabled + @Test + public void testUpdateMobileRedirectWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateMobileRedirectWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateMobileRedirectWOptions(); } + // Test the getPrefetchPreload operation with a valid options model parameter @Test public void testGetPrefetchPreloadWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"prefetch_preload\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getPrefetchPreloadPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/prefetch_preload", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"prefetch_preload\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getPrefetchPreloadPath = "/v1/testString/zones/testString/settings/prefetch_preload"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetPrefetchPreloadOptions model GetPrefetchPreloadOptions getPrefetchPreloadOptionsModel = new GetPrefetchPreloadOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getPrefetchPreload() with a valid options model and verify the result Response response = zonesSettingsService.getPrefetchPreload(getPrefetchPreloadOptionsModel).execute(); assertNotNull(response); PrefetchPreloadResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getPrefetchPreloadPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getPrefetchPreloadPath); + // Test the getPrefetchPreload operation with and without retries enabled + @Test + public void testGetPrefetchPreloadWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetPrefetchPreloadWOptions(); + + zonesSettingsService.disableRetries(); + testGetPrefetchPreloadWOptions(); } + // Test the updatePrefetchPreload operation with a valid options model parameter @Test public void testUpdatePrefetchPreloadWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"prefetch_preload\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updatePrefetchPreloadPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/prefetch_preload", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"prefetch_preload\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updatePrefetchPreloadPath = "/v1/testString/zones/testString/settings/prefetch_preload"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdatePrefetchPreloadOptions model UpdatePrefetchPreloadOptions updatePrefetchPreloadOptionsModel = new UpdatePrefetchPreloadOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updatePrefetchPreload() with a valid options model and verify the result Response response = zonesSettingsService.updatePrefetchPreload(updatePrefetchPreloadOptionsModel).execute(); assertNotNull(response); PrefetchPreloadResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updatePrefetchPreloadPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updatePrefetchPreloadPath); + // Test the updatePrefetchPreload operation with and without retries enabled + @Test + public void testUpdatePrefetchPreloadWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdatePrefetchPreloadWOptions(); + + zonesSettingsService.disableRetries(); + testUpdatePrefetchPreloadWOptions(); } + // Test the getHttp2 operation with a valid options model parameter @Test public void testGetHttp2WOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"http2\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getHttp2Path = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/http2", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"http2\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getHttp2Path = "/v1/testString/zones/testString/settings/http2"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetHttp2Options model GetHttp2Options getHttp2OptionsModel = new GetHttp2Options(); - // Invoke operation with valid options model (positive test) + // Invoke getHttp2() with a valid options model and verify the result Response response = zonesSettingsService.getHttp2(getHttp2OptionsModel).execute(); assertNotNull(response); Http2Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getHttp2Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getHttp2Path); + // Test the getHttp2 operation with and without retries enabled + @Test + public void testGetHttp2WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetHttp2WOptions(); + + zonesSettingsService.disableRetries(); + testGetHttp2WOptions(); } + // Test the updateHttp2 operation with a valid options model parameter @Test public void testUpdateHttp2WOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"http2\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateHttp2Path = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/http2", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"http2\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateHttp2Path = "/v1/testString/zones/testString/settings/http2"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateHttp2Options model UpdateHttp2Options updateHttp2OptionsModel = new UpdateHttp2Options.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateHttp2() with a valid options model and verify the result Response response = zonesSettingsService.updateHttp2(updateHttp2OptionsModel).execute(); assertNotNull(response); Http2Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateHttp2Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateHttp2Path); + // Test the updateHttp2 operation with and without retries enabled + @Test + public void testUpdateHttp2WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateHttp2WOptions(); + + zonesSettingsService.disableRetries(); + testUpdateHttp2WOptions(); } + // Test the getHttp3 operation with a valid options model parameter @Test public void testGetHttp3WOptions() throws Throwable { - // Schedule some responses. + // Register a mock response String mockResponseBody = "{\"result\": {\"id\": \"http3\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; String getHttp3Path = "/v1/testString/zones/testString/settings/http3"; - server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetHttp3Options model GetHttp3Options getHttp3OptionsModel = new GetHttp3Options(); - // Invoke operation with valid options model (positive test) + // Invoke getHttp3() with a valid options model and verify the result Response response = zonesSettingsService.getHttp3(getHttp3OptionsModel).execute(); assertNotNull(response); Http3Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getHttp3Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getHttp3Path); + // Test the getHttp3 operation with and without retries enabled + @Test + public void testGetHttp3WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetHttp3WOptions(); + + zonesSettingsService.disableRetries(); + testGetHttp3WOptions(); } + // Test the updateHttp3 operation with a valid options model parameter @Test public void testUpdateHttp3WOptions() throws Throwable { - // Schedule some responses. + // Register a mock response String mockResponseBody = "{\"result\": {\"id\": \"http3\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; String updateHttp3Path = "/v1/testString/zones/testString/settings/http3"; - server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateHttp3Options model UpdateHttp3Options updateHttp3OptionsModel = new UpdateHttp3Options.Builder() - .value("on") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateHttp3() with a valid options model and verify the result Response response = zonesSettingsService.updateHttp3(updateHttp3OptionsModel).execute(); assertNotNull(response); Http3Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateHttp3Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateHttp3Path); + // Test the updateHttp3 operation with and without retries enabled + @Test + public void testUpdateHttp3WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateHttp3WOptions(); + + zonesSettingsService.disableRetries(); + testUpdateHttp3WOptions(); } + // Test the getIpv6 operation with a valid options model parameter @Test public void testGetIpv6WOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"ipv6\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getIpv6Path = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/ipv6", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"ipv6\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getIpv6Path = "/v1/testString/zones/testString/settings/ipv6"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetIpv6Options model GetIpv6Options getIpv6OptionsModel = new GetIpv6Options(); - // Invoke operation with valid options model (positive test) + // Invoke getIpv6() with a valid options model and verify the result Response response = zonesSettingsService.getIpv6(getIpv6OptionsModel).execute(); assertNotNull(response); Ipv6Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getIpv6Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getIpv6Path); + // Test the getIpv6 operation with and without retries enabled + @Test + public void testGetIpv6WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetIpv6WOptions(); + + zonesSettingsService.disableRetries(); + testGetIpv6WOptions(); } + // Test the updateIpv6 operation with a valid options model parameter @Test public void testUpdateIpv6WOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"ipv6\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateIpv6Path = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/ipv6", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"ipv6\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateIpv6Path = "/v1/testString/zones/testString/settings/ipv6"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateIpv6Options model UpdateIpv6Options updateIpv6OptionsModel = new UpdateIpv6Options.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateIpv6() with a valid options model and verify the result Response response = zonesSettingsService.updateIpv6(updateIpv6OptionsModel).execute(); assertNotNull(response); Ipv6Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateIpv6Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateIpv6Path); + // Test the updateIpv6 operation with and without retries enabled + @Test + public void testUpdateIpv6WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateIpv6WOptions(); + + zonesSettingsService.disableRetries(); + testUpdateIpv6WOptions(); } + // Test the getWebSockets operation with a valid options model parameter @Test public void testGetWebSocketsWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"websockets\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getWebSocketsPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/websockets", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"websockets\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getWebSocketsPath = "/v1/testString/zones/testString/settings/websockets"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetWebSocketsOptions model GetWebSocketsOptions getWebSocketsOptionsModel = new GetWebSocketsOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getWebSockets() with a valid options model and verify the result Response response = zonesSettingsService.getWebSockets(getWebSocketsOptionsModel).execute(); assertNotNull(response); WebsocketsResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getWebSocketsPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getWebSocketsPath); + // Test the getWebSockets operation with and without retries enabled + @Test + public void testGetWebSocketsWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetWebSocketsWOptions(); + + zonesSettingsService.disableRetries(); + testGetWebSocketsWOptions(); } + // Test the updateWebSockets operation with a valid options model parameter @Test public void testUpdateWebSocketsWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"websockets\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateWebSocketsPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/websockets", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"websockets\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateWebSocketsPath = "/v1/testString/zones/testString/settings/websockets"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateWebSocketsOptions model UpdateWebSocketsOptions updateWebSocketsOptionsModel = new UpdateWebSocketsOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateWebSockets() with a valid options model and verify the result Response response = zonesSettingsService.updateWebSockets(updateWebSocketsOptionsModel).execute(); assertNotNull(response); WebsocketsResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateWebSocketsPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateWebSocketsPath); + // Test the updateWebSockets operation with and without retries enabled + @Test + public void testUpdateWebSocketsWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateWebSocketsWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateWebSocketsWOptions(); } + // Test the getPseudoIpv4 operation with a valid options model parameter @Test public void testGetPseudoIpv4WOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"pseudo_ipv4\", \"value\": \"add_header\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getPseudoIpv4Path = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/pseudo_ipv4", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"pseudo_ipv4\", \"value\": \"add_header\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getPseudoIpv4Path = "/v1/testString/zones/testString/settings/pseudo_ipv4"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetPseudoIpv4Options model GetPseudoIpv4Options getPseudoIpv4OptionsModel = new GetPseudoIpv4Options(); - // Invoke operation with valid options model (positive test) + // Invoke getPseudoIpv4() with a valid options model and verify the result Response response = zonesSettingsService.getPseudoIpv4(getPseudoIpv4OptionsModel).execute(); assertNotNull(response); PseudoIpv4Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getPseudoIpv4Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getPseudoIpv4Path); + // Test the getPseudoIpv4 operation with and without retries enabled + @Test + public void testGetPseudoIpv4WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetPseudoIpv4WOptions(); + + zonesSettingsService.disableRetries(); + testGetPseudoIpv4WOptions(); } + // Test the updatePseudoIpv4 operation with a valid options model parameter @Test public void testUpdatePseudoIpv4WOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"pseudo_ipv4\", \"value\": \"add_header\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updatePseudoIpv4Path = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/pseudo_ipv4", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"pseudo_ipv4\", \"value\": \"add_header\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updatePseudoIpv4Path = "/v1/testString/zones/testString/settings/pseudo_ipv4"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdatePseudoIpv4Options model UpdatePseudoIpv4Options updatePseudoIpv4OptionsModel = new UpdatePseudoIpv4Options.Builder() - .value("add_header") - .build(); + .value("add_header") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updatePseudoIpv4() with a valid options model and verify the result Response response = zonesSettingsService.updatePseudoIpv4(updatePseudoIpv4OptionsModel).execute(); assertNotNull(response); PseudoIpv4Resp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updatePseudoIpv4Path); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updatePseudoIpv4Path); + // Test the updatePseudoIpv4 operation with and without retries enabled + @Test + public void testUpdatePseudoIpv4WRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdatePseudoIpv4WOptions(); + + zonesSettingsService.disableRetries(); + testUpdatePseudoIpv4WOptions(); } + // Test the getResponseBuffering operation with a valid options model parameter @Test public void testGetResponseBufferingWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"response_buffering\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getResponseBufferingPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/response_buffering", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"response_buffering\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getResponseBufferingPath = "/v1/testString/zones/testString/settings/response_buffering"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetResponseBufferingOptions model GetResponseBufferingOptions getResponseBufferingOptionsModel = new GetResponseBufferingOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getResponseBuffering() with a valid options model and verify the result Response response = zonesSettingsService.getResponseBuffering(getResponseBufferingOptionsModel).execute(); assertNotNull(response); ResponseBufferingResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getResponseBufferingPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getResponseBufferingPath); + // Test the getResponseBuffering operation with and without retries enabled + @Test + public void testGetResponseBufferingWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetResponseBufferingWOptions(); + + zonesSettingsService.disableRetries(); + testGetResponseBufferingWOptions(); } + // Test the updateResponseBuffering operation with a valid options model parameter @Test public void testUpdateResponseBufferingWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"response_buffering\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateResponseBufferingPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/response_buffering", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"response_buffering\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateResponseBufferingPath = "/v1/testString/zones/testString/settings/response_buffering"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateResponseBufferingOptions model UpdateResponseBufferingOptions updateResponseBufferingOptionsModel = new UpdateResponseBufferingOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateResponseBuffering() with a valid options model and verify the result Response response = zonesSettingsService.updateResponseBuffering(updateResponseBufferingOptionsModel).execute(); assertNotNull(response); ResponseBufferingResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateResponseBufferingPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateResponseBufferingPath); + // Test the updateResponseBuffering operation with and without retries enabled + @Test + public void testUpdateResponseBufferingWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateResponseBufferingWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateResponseBufferingWOptions(); } + // Test the getHotlinkProtection operation with a valid options model parameter @Test public void testGetHotlinkProtectionWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"hotlink_protection\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getHotlinkProtectionPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/hotlink_protection", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"hotlink_protection\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getHotlinkProtectionPath = "/v1/testString/zones/testString/settings/hotlink_protection"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetHotlinkProtectionOptions model GetHotlinkProtectionOptions getHotlinkProtectionOptionsModel = new GetHotlinkProtectionOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getHotlinkProtection() with a valid options model and verify the result Response response = zonesSettingsService.getHotlinkProtection(getHotlinkProtectionOptionsModel).execute(); assertNotNull(response); HotlinkProtectionResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getHotlinkProtectionPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getHotlinkProtectionPath); + // Test the getHotlinkProtection operation with and without retries enabled + @Test + public void testGetHotlinkProtectionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetHotlinkProtectionWOptions(); + + zonesSettingsService.disableRetries(); + testGetHotlinkProtectionWOptions(); } + // Test the updateHotlinkProtection operation with a valid options model parameter @Test public void testUpdateHotlinkProtectionWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"hotlink_protection\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateHotlinkProtectionPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/hotlink_protection", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"hotlink_protection\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateHotlinkProtectionPath = "/v1/testString/zones/testString/settings/hotlink_protection"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateHotlinkProtectionOptions model UpdateHotlinkProtectionOptions updateHotlinkProtectionOptionsModel = new UpdateHotlinkProtectionOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateHotlinkProtection() with a valid options model and verify the result Response response = zonesSettingsService.updateHotlinkProtection(updateHotlinkProtectionOptionsModel).execute(); assertNotNull(response); HotlinkProtectionResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateHotlinkProtectionPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateHotlinkProtectionPath); + // Test the updateHotlinkProtection operation with and without retries enabled + @Test + public void testUpdateHotlinkProtectionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateHotlinkProtectionWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateHotlinkProtectionWOptions(); } + // Test the getMaxUpload operation with a valid options model parameter @Test public void testGetMaxUploadWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"max_upload\", \"value\": 300, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getMaxUploadPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/max_upload", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"max_upload\", \"value\": 300, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getMaxUploadPath = "/v1/testString/zones/testString/settings/max_upload"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetMaxUploadOptions model GetMaxUploadOptions getMaxUploadOptionsModel = new GetMaxUploadOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getMaxUpload() with a valid options model and verify the result Response response = zonesSettingsService.getMaxUpload(getMaxUploadOptionsModel).execute(); assertNotNull(response); MaxUploadResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getMaxUploadPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getMaxUploadPath); + // Test the getMaxUpload operation with and without retries enabled + @Test + public void testGetMaxUploadWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetMaxUploadWOptions(); + + zonesSettingsService.disableRetries(); + testGetMaxUploadWOptions(); } + // Test the updateMaxUpload operation with a valid options model parameter @Test public void testUpdateMaxUploadWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"max_upload\", \"value\": 300, \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateMaxUploadPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/max_upload", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"max_upload\", \"value\": 300, \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateMaxUploadPath = "/v1/testString/zones/testString/settings/max_upload"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateMaxUploadOptions model UpdateMaxUploadOptions updateMaxUploadOptionsModel = new UpdateMaxUploadOptions.Builder() - .value(Long.valueOf("300")) - .build(); + .value(Long.valueOf("300")) + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateMaxUpload() with a valid options model and verify the result Response response = zonesSettingsService.updateMaxUpload(updateMaxUploadOptionsModel).execute(); assertNotNull(response); MaxUploadResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateMaxUploadPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateMaxUploadPath); + // Test the updateMaxUpload operation with and without retries enabled + @Test + public void testUpdateMaxUploadWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateMaxUploadWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateMaxUploadWOptions(); } + // Test the getTlsClientAuth operation with a valid options model parameter @Test public void testGetTlsClientAuthWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"tls_client_auth\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getTlsClientAuthPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/tls_client_auth", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"tls_client_auth\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getTlsClientAuthPath = "/v1/testString/zones/testString/settings/tls_client_auth"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetTlsClientAuthOptions model GetTlsClientAuthOptions getTlsClientAuthOptionsModel = new GetTlsClientAuthOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getTlsClientAuth() with a valid options model and verify the result Response response = zonesSettingsService.getTlsClientAuth(getTlsClientAuthOptionsModel).execute(); assertNotNull(response); TlsClientAuthResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getTlsClientAuthPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getTlsClientAuthPath); + // Test the getTlsClientAuth operation with and without retries enabled + @Test + public void testGetTlsClientAuthWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetTlsClientAuthWOptions(); + + zonesSettingsService.disableRetries(); + testGetTlsClientAuthWOptions(); } + // Test the updateTlsClientAuth operation with a valid options model parameter @Test public void testUpdateTlsClientAuthWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"tls_client_auth\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateTlsClientAuthPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/tls_client_auth", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"tls_client_auth\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateTlsClientAuthPath = "/v1/testString/zones/testString/settings/tls_client_auth"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateTlsClientAuthOptions model UpdateTlsClientAuthOptions updateTlsClientAuthOptionsModel = new UpdateTlsClientAuthOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateTlsClientAuth() with a valid options model and verify the result Response response = zonesSettingsService.updateTlsClientAuth(updateTlsClientAuthOptionsModel).execute(); assertNotNull(response); TlsClientAuthResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateTlsClientAuthPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateTlsClientAuth operation with and without retries enabled + @Test + public void testUpdateTlsClientAuthWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateTlsClientAuthWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateTlsClientAuthWOptions(); + } + + // Test the getBrotli operation with a valid options model parameter + @Test + public void testGetBrotliWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"brotli\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:52.826Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getBrotliPath = "/v1/testString/zones/testString/settings/brotli"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetBrotliOptions model + GetBrotliOptions getBrotliOptionsModel = new GetBrotliOptions(); + + // Invoke getBrotli() with a valid options model and verify the result + Response response = zonesSettingsService.getBrotli(getBrotliOptionsModel).execute(); + assertNotNull(response); + BrotliResp responseObj = response.getResult(); + assertNotNull(responseObj); - // Check query + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getBrotliPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } + + // Test the getBrotli operation with and without retries enabled + @Test + public void testGetBrotliWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetBrotliWOptions(); + + zonesSettingsService.disableRetries(); + testGetBrotliWOptions(); + } + + // Test the updateBrotli operation with a valid options model parameter + @Test + public void testUpdateBrotliWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"brotli\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:52.826Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateBrotliPath = "/v1/testString/zones/testString/settings/brotli"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateBrotliOptions model + UpdateBrotliOptions updateBrotliOptionsModel = new UpdateBrotliOptions.Builder() + .value("on") + .build(); + + // Invoke updateBrotli() with a valid options model and verify the result + Response response = zonesSettingsService.updateBrotli(updateBrotliOptionsModel).execute(); + assertNotNull(response); + BrotliResp responseObj = response.getResult(); + assertNotNull(responseObj); - // Check request path + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PATCH"); + // Verify request path String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateTlsClientAuthPath); + assertEquals(parsedPath, updateBrotliPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); } + // Test the updateBrotli operation with and without retries enabled @Test - public void testGetBrowserCheckWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"browser_check\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getBrowserCheckPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/browser_check", "UTF-8").replace("%2F", "/"); + public void testUpdateBrotliWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateBrotliWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateBrotliWOptions(); + } + // Test the getProxyReadTimeout operation with a valid options model parameter + @Test + public void testGetProxyReadTimeoutWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"proxy_read_timeout\", \"value\": 100, \"editable\": true, \"modified_on\": \"2018-12-08T18:57:52.826Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getProxyReadTimeoutPath = "/v1/testString/zones/testString/settings/proxy_read_timeout"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); - constructClientService(); + // Construct an instance of the GetProxyReadTimeoutOptions model + GetProxyReadTimeoutOptions getProxyReadTimeoutOptionsModel = new GetProxyReadTimeoutOptions(); + + // Invoke getProxyReadTimeout() with a valid options model and verify the result + Response response = zonesSettingsService.getProxyReadTimeout(getProxyReadTimeoutOptionsModel).execute(); + assertNotNull(response); + ProxyReadTimeoutResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getProxyReadTimeoutPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the getProxyReadTimeout operation with and without retries enabled + @Test + public void testGetProxyReadTimeoutWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetProxyReadTimeoutWOptions(); + + zonesSettingsService.disableRetries(); + testGetProxyReadTimeoutWOptions(); + } + + // Test the updateProxyReadTimeout operation with a valid options model parameter + @Test + public void testUpdateProxyReadTimeoutWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"proxy_read_timeout\", \"value\": 100, \"editable\": true, \"modified_on\": \"2018-12-08T18:57:52.826Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateProxyReadTimeoutPath = "/v1/testString/zones/testString/settings/proxy_read_timeout"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateProxyReadTimeoutOptions model + UpdateProxyReadTimeoutOptions updateProxyReadTimeoutOptionsModel = new UpdateProxyReadTimeoutOptions.Builder() + .value(Double.valueOf("600")) + .build(); + + // Invoke updateProxyReadTimeout() with a valid options model and verify the result + Response response = zonesSettingsService.updateProxyReadTimeout(updateProxyReadTimeoutOptionsModel).execute(); + assertNotNull(response); + ProxyReadTimeoutResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PATCH"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateProxyReadTimeoutPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateProxyReadTimeout operation with and without retries enabled + @Test + public void testUpdateProxyReadTimeoutWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateProxyReadTimeoutWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateProxyReadTimeoutWOptions(); + } + + // Test the getBrowserCheck operation with a valid options model parameter + @Test + public void testGetBrowserCheckWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"browser_check\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:14.506Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getBrowserCheckPath = "/v1/testString/zones/testString/settings/browser_check"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetBrowserCheckOptions model GetBrowserCheckOptions getBrowserCheckOptionsModel = new GetBrowserCheckOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getBrowserCheck() with a valid options model and verify the result Response response = zonesSettingsService.getBrowserCheck(getBrowserCheckOptionsModel).execute(); assertNotNull(response); BrowserCheckResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getBrowserCheckPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getBrowserCheckPath); + // Test the getBrowserCheck operation with and without retries enabled + @Test + public void testGetBrowserCheckWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetBrowserCheckWOptions(); + + zonesSettingsService.disableRetries(); + testGetBrowserCheckWOptions(); } + // Test the updateBrowserCheck operation with a valid options model parameter @Test public void testUpdateBrowserCheckWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"browser_check\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateBrowserCheckPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/browser_check", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"browser_check\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:14.506Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateBrowserCheckPath = "/v1/testString/zones/testString/settings/browser_check"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateBrowserCheckOptions model UpdateBrowserCheckOptions updateBrowserCheckOptionsModel = new UpdateBrowserCheckOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateBrowserCheck() with a valid options model and verify the result Response response = zonesSettingsService.updateBrowserCheck(updateBrowserCheckOptionsModel).execute(); assertNotNull(response); BrowserCheckResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateBrowserCheckPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateBrowserCheckPath); + // Test the updateBrowserCheck operation with and without retries enabled + @Test + public void testUpdateBrowserCheckWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateBrowserCheckWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateBrowserCheckWOptions(); } + // Test the getEnableErrorPagesOn operation with a valid options model parameter @Test public void testGetEnableErrorPagesOnWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"origin_error_page_pass_thru\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getEnableErrorPagesOnPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/origin_error_page_pass_thru", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"origin_error_page_pass_thru\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:52.826Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getEnableErrorPagesOnPath = "/v1/testString/zones/testString/settings/origin_error_page_pass_thru"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetEnableErrorPagesOnOptions model GetEnableErrorPagesOnOptions getEnableErrorPagesOnOptionsModel = new GetEnableErrorPagesOnOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getEnableErrorPagesOn() with a valid options model and verify the result Response response = zonesSettingsService.getEnableErrorPagesOn(getEnableErrorPagesOnOptionsModel).execute(); assertNotNull(response); OriginErrorPagePassThruResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getEnableErrorPagesOnPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getEnableErrorPagesOnPath); + // Test the getEnableErrorPagesOn operation with and without retries enabled + @Test + public void testGetEnableErrorPagesOnWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetEnableErrorPagesOnWOptions(); + + zonesSettingsService.disableRetries(); + testGetEnableErrorPagesOnWOptions(); } + // Test the updateEnableErrorPagesOn operation with a valid options model parameter @Test public void testUpdateEnableErrorPagesOnWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"origin_error_page_pass_thru\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateEnableErrorPagesOnPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/origin_error_page_pass_thru", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"origin_error_page_pass_thru\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:52.826Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateEnableErrorPagesOnPath = "/v1/testString/zones/testString/settings/origin_error_page_pass_thru"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateEnableErrorPagesOnOptions model UpdateEnableErrorPagesOnOptions updateEnableErrorPagesOnOptionsModel = new UpdateEnableErrorPagesOnOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateEnableErrorPagesOn() with a valid options model and verify the result Response response = zonesSettingsService.updateEnableErrorPagesOn(updateEnableErrorPagesOnOptionsModel).execute(); assertNotNull(response); OriginErrorPagePassThruResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateEnableErrorPagesOnPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateEnableErrorPagesOnPath); + // Test the updateEnableErrorPagesOn operation with and without retries enabled + @Test + public void testUpdateEnableErrorPagesOnWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateEnableErrorPagesOnWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateEnableErrorPagesOnWOptions(); } + // Test the getWebApplicationFirewall operation with a valid options model parameter @Test public void testGetWebApplicationFirewallWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"waf\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getWebApplicationFirewallPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/waf", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"waf\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:43.889Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getWebApplicationFirewallPath = "/v1/testString/zones/testString/settings/waf"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetWebApplicationFirewallOptions model GetWebApplicationFirewallOptions getWebApplicationFirewallOptionsModel = new GetWebApplicationFirewallOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getWebApplicationFirewall() with a valid options model and verify the result Response response = zonesSettingsService.getWebApplicationFirewall(getWebApplicationFirewallOptionsModel).execute(); assertNotNull(response); WafResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getWebApplicationFirewallPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getWebApplicationFirewallPath); + // Test the getWebApplicationFirewall operation with and without retries enabled + @Test + public void testGetWebApplicationFirewallWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetWebApplicationFirewallWOptions(); + + zonesSettingsService.disableRetries(); + testGetWebApplicationFirewallWOptions(); } + // Test the updateWebApplicationFirewall operation with a valid options model parameter @Test public void testUpdateWebApplicationFirewallWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"waf\", \"value\": \"false\", \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateWebApplicationFirewallPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/waf", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"waf\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2018-12-08T18:57:43.889Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateWebApplicationFirewallPath = "/v1/testString/zones/testString/settings/waf"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateWebApplicationFirewallOptions model UpdateWebApplicationFirewallOptions updateWebApplicationFirewallOptionsModel = new UpdateWebApplicationFirewallOptions.Builder() - .value("true") - .build(); + .value("on") + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateWebApplicationFirewall() with a valid options model and verify the result Response response = zonesSettingsService.updateWebApplicationFirewall(updateWebApplicationFirewallOptionsModel).execute(); assertNotNull(response); WafResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateWebApplicationFirewallPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateWebApplicationFirewallPath); + // Test the updateWebApplicationFirewall operation with and without retries enabled + @Test + public void testUpdateWebApplicationFirewallWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateWebApplicationFirewallWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateWebApplicationFirewallWOptions(); } + // Test the getCiphers operation with a valid options model parameter @Test public void testGetCiphersWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"ciphers\", \"value\": [\"value\"], \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String getCiphersPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/ciphers", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"ciphers\", \"value\": [\"value\"], \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getCiphersPath = "/v1/testString/zones/testString/settings/ciphers"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the GetCiphersOptions model GetCiphersOptions getCiphersOptionsModel = new GetCiphersOptions(); - // Invoke operation with valid options model (positive test) + // Invoke getCiphers() with a valid options model and verify the result Response response = zonesSettingsService.getCiphers(getCiphersOptionsModel).execute(); assertNotNull(response); CiphersResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "GET"); - - // Check query + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getCiphersPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } - // Check request path - String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, getCiphersPath); + // Test the getCiphers operation with and without retries enabled + @Test + public void testGetCiphersWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetCiphersWOptions(); + + zonesSettingsService.disableRetries(); + testGetCiphersWOptions(); } + // Test the updateCiphers operation with a valid options model parameter @Test public void testUpdateCiphersWOptions() throws Throwable { - // Schedule some responses. - String mockResponseBody = "{\"result\": {\"id\": \"ciphers\", \"value\": [\"value\"], \"editable\": true, \"modified_on\": \"2019-01-01T12:00:00\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; - String updateCiphersPath = java.net.URLEncoder.encode("/v1/testString/zones/testString/settings/ciphers", "UTF-8").replace("%2F", "/"); - + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"ciphers\", \"value\": [\"value\"], \"editable\": true, \"modified_on\": \"2018-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateCiphersPath = "/v1/testString/zones/testString/settings/ciphers"; server.enqueue(new MockResponse() - .setHeader("Content-type", "application/json") - .setResponseCode(200) - .setBody(mockResponseBody)); - - constructClientService(); + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); // Construct an instance of the UpdateCiphersOptions model UpdateCiphersOptions updateCiphersOptionsModel = new UpdateCiphersOptions.Builder() - .value(new java.util.ArrayList(java.util.Arrays.asList("ECDHE-ECDSA-AES128-GCM-SHA256"))) - .build(); + .value(java.util.Arrays.asList("AES256-GCM-SHA384", "AES256-SHA256")) + .build(); - // Invoke operation with valid options model (positive test) + // Invoke updateCiphers() with a valid options model and verify the result Response response = zonesSettingsService.updateCiphers(updateCiphersOptionsModel).execute(); assertNotNull(response); CiphersResp responseObj = response.getResult(); assertNotNull(responseObj); - // Verify the contents of the request + // Verify the contents of the request sent to the mock server RecordedRequest request = server.takeRequest(); assertNotNull(request); assertEquals(request.getMethod(), "PATCH"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateCiphersPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateCiphers operation with and without retries enabled + @Test + public void testUpdateCiphersWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateCiphersWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateCiphersWOptions(); + } + + // Test the getOriginMaxHttpVersion operation with a valid options model parameter + @Test + public void testGetOriginMaxHttpVersionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"origin_max_http_version\", \"value\": \"1\", \"editable\": true, \"modified_on\": \"2023-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getOriginMaxHttpVersionPath = "/v1/testString/zones/testString/settings/origin_max_http_version"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetOriginMaxHttpVersionOptions model + GetOriginMaxHttpVersionOptions getOriginMaxHttpVersionOptionsModel = new GetOriginMaxHttpVersionOptions(); + + // Invoke getOriginMaxHttpVersion() with a valid options model and verify the result + Response response = zonesSettingsService.getOriginMaxHttpVersion(getOriginMaxHttpVersionOptionsModel).execute(); + assertNotNull(response); + OriginMaxHttpVersionResp responseObj = response.getResult(); + assertNotNull(responseObj); - // Check query + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getOriginMaxHttpVersionPath); + // Verify that there is no query string Map query = TestUtilities.parseQueryString(request); assertNull(query); + } + + // Test the getOriginMaxHttpVersion operation with and without retries enabled + @Test + public void testGetOriginMaxHttpVersionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetOriginMaxHttpVersionWOptions(); + + zonesSettingsService.disableRetries(); + testGetOriginMaxHttpVersionWOptions(); + } + + // Test the updateOriginMaxHttpVersion operation with a valid options model parameter + @Test + public void testUpdateOriginMaxHttpVersionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"origin_max_http_version\", \"value\": \"1\", \"editable\": true, \"modified_on\": \"2023-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateOriginMaxHttpVersionPath = "/v1/testString/zones/testString/settings/origin_max_http_version"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateOriginMaxHttpVersionOptions model + UpdateOriginMaxHttpVersionOptions updateOriginMaxHttpVersionOptionsModel = new UpdateOriginMaxHttpVersionOptions.Builder() + .value("1") + .build(); + + // Invoke updateOriginMaxHttpVersion() with a valid options model and verify the result + Response response = zonesSettingsService.updateOriginMaxHttpVersion(updateOriginMaxHttpVersionOptionsModel).execute(); + assertNotNull(response); + OriginMaxHttpVersionResp responseObj = response.getResult(); + assertNotNull(responseObj); - // Check request path + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PATCH"); + // Verify request path String parsedPath = TestUtilities.parseReqPath(request); - assertEquals(parsedPath, updateCiphersPath); + assertEquals(parsedPath, updateOriginMaxHttpVersionPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateOriginMaxHttpVersion operation with and without retries enabled + @Test + public void testUpdateOriginMaxHttpVersionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateOriginMaxHttpVersionWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateOriginMaxHttpVersionWOptions(); + } + + // Test the getOriginPostQuantumEncryption operation with a valid options model parameter + @Test + public void testGetOriginPostQuantumEncryptionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"origin_pqe\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2023-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getOriginPostQuantumEncryptionPath = "/v1/testString/zones/testString/cache/origin_post_quantum_encryption"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetOriginPostQuantumEncryptionOptions model + GetOriginPostQuantumEncryptionOptions getOriginPostQuantumEncryptionOptionsModel = new GetOriginPostQuantumEncryptionOptions(); + + // Invoke getOriginPostQuantumEncryption() with a valid options model and verify the result + Response response = zonesSettingsService.getOriginPostQuantumEncryption(getOriginPostQuantumEncryptionOptionsModel).execute(); + assertNotNull(response); + OriginPostQuantumEncryptionResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getOriginPostQuantumEncryptionPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the getOriginPostQuantumEncryption operation with and without retries enabled + @Test + public void testGetOriginPostQuantumEncryptionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetOriginPostQuantumEncryptionWOptions(); + + zonesSettingsService.disableRetries(); + testGetOriginPostQuantumEncryptionWOptions(); + } + + // Test the updateOriginPostQuantumEncryption operation with a valid options model parameter + @Test + public void testUpdateOriginPostQuantumEncryptionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"origin_pqe\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2023-09-14T09:49:19.524Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateOriginPostQuantumEncryptionPath = "/v1/testString/zones/testString/cache/origin_post_quantum_encryption"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateOriginPostQuantumEncryptionOptions model + UpdateOriginPostQuantumEncryptionOptions updateOriginPostQuantumEncryptionOptionsModel = new UpdateOriginPostQuantumEncryptionOptions.Builder() + .value("preferred") + .build(); + + // Invoke updateOriginPostQuantumEncryption() with a valid options model and verify the result + Response response = zonesSettingsService.updateOriginPostQuantumEncryption(updateOriginPostQuantumEncryptionOptionsModel).execute(); + assertNotNull(response); + OriginPostQuantumEncryptionResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PUT"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateOriginPostQuantumEncryptionPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateOriginPostQuantumEncryption operation with and without retries enabled + @Test + public void testUpdateOriginPostQuantumEncryptionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateOriginPostQuantumEncryptionWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateOriginPostQuantumEncryptionWOptions(); + } + + // Test the getLogRetention operation with a valid options model parameter + @Test + public void testGetLogRetentionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"success\": true, \"result\": {\"flag\": true}, \"errors\": [\"errors\"], \"messages\": [\"messages\"]}"; + String getLogRetentionPath = "/v1/testString/zones/testString/logs/retention"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetLogRetentionOptions model + GetLogRetentionOptions getLogRetentionOptionsModel = new GetLogRetentionOptions.Builder() + .crn("testString") + .zoneIdentifier("testString") + .build(); + + // Invoke getLogRetention() with a valid options model and verify the result + Response response = zonesSettingsService.getLogRetention(getLogRetentionOptionsModel).execute(); + assertNotNull(response); + LogRetentionResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getLogRetentionPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the getLogRetention operation with and without retries enabled + @Test + public void testGetLogRetentionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetLogRetentionWOptions(); + + zonesSettingsService.disableRetries(); + testGetLogRetentionWOptions(); + } + + // Test the getLogRetention operation with a null options model (negative test) + @Test(expectedExceptions = IllegalArgumentException.class) + public void testGetLogRetentionNoOptions() throws Throwable { + server.enqueue(new MockResponse()); + zonesSettingsService.getLogRetention(null).execute(); + } + + // Test the updateLogRetention operation with a valid options model parameter + @Test + public void testUpdateLogRetentionWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"success\": true, \"result\": {\"flag\": true}, \"errors\": [\"errors\"], \"messages\": [\"messages\"]}"; + String updateLogRetentionPath = "/v1/testString/zones/testString/logs/retention"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateLogRetentionOptions model + UpdateLogRetentionOptions updateLogRetentionOptionsModel = new UpdateLogRetentionOptions.Builder() + .crn("testString") + .zoneIdentifier("testString") + .flag(true) + .build(); + + // Invoke updateLogRetention() with a valid options model and verify the result + Response response = zonesSettingsService.updateLogRetention(updateLogRetentionOptionsModel).execute(); + assertNotNull(response); + LogRetentionResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "POST"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateLogRetentionPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateLogRetention operation with and without retries enabled + @Test + public void testUpdateLogRetentionWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateLogRetentionWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateLogRetentionWOptions(); } - /** Initialize the server */ + // Test the updateLogRetention operation with a null options model (negative test) + @Test(expectedExceptions = IllegalArgumentException.class) + public void testUpdateLogRetentionNoOptions() throws Throwable { + server.enqueue(new MockResponse()); + zonesSettingsService.updateLogRetention(null).execute(); + } + + // Test the getBotManagement operation with a valid options model parameter + @Test + public void testGetBotManagementWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"session_score\": false, \"enable_js\": false, \"use_latest_model\": false, \"ai_bots_protection\": \"block\"}}"; + String getBotManagementPath = "/v1/testString/zones/testString/bot_management"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetBotManagementOptions model + GetBotManagementOptions getBotManagementOptionsModel = new GetBotManagementOptions(); + + // Invoke getBotManagement() with a valid options model and verify the result + Response response = zonesSettingsService.getBotManagement(getBotManagementOptionsModel).execute(); + assertNotNull(response); + BotMgtResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getBotManagementPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the getBotManagement operation with and without retries enabled + @Test + public void testGetBotManagementWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetBotManagementWOptions(); + + zonesSettingsService.disableRetries(); + testGetBotManagementWOptions(); + } + + // Test the updateBotManagement operation with a valid options model parameter + @Test + public void testUpdateBotManagementWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]], \"result\": {\"session_score\": false, \"enable_js\": false, \"use_latest_model\": false, \"ai_bots_protection\": \"block\"}}"; + String updateBotManagementPath = "/v1/testString/zones/testString/bot_management"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateBotManagementOptions model + UpdateBotManagementOptions updateBotManagementOptionsModel = new UpdateBotManagementOptions.Builder() + .sessionScore(false) + .enableJs(false) + .useLatestModel(false) + .aiBotsProtection("block") + .build(); + + // Invoke updateBotManagement() with a valid options model and verify the result + Response response = zonesSettingsService.updateBotManagement(updateBotManagementOptionsModel).execute(); + assertNotNull(response); + BotMgtResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PUT"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateBotManagementPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateBotManagement operation with and without retries enabled + @Test + public void testUpdateBotManagementWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateBotManagementWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateBotManagementWOptions(); + } + + // Test the getReplaceInsecureJs operation with a valid options model parameter + @Test + public void testGetReplaceInsecureJsWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"replace_insecure_js\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getReplaceInsecureJsPath = "/v1/testString/zones/testString/settings/replace_insecure_js"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetReplaceInsecureJsOptions model + GetReplaceInsecureJsOptions getReplaceInsecureJsOptionsModel = new GetReplaceInsecureJsOptions(); + + // Invoke getReplaceInsecureJs() with a valid options model and verify the result + Response response = zonesSettingsService.getReplaceInsecureJs(getReplaceInsecureJsOptionsModel).execute(); + assertNotNull(response); + ReplaceInsecureJsResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getReplaceInsecureJsPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the getReplaceInsecureJs operation with and without retries enabled + @Test + public void testGetReplaceInsecureJsWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetReplaceInsecureJsWOptions(); + + zonesSettingsService.disableRetries(); + testGetReplaceInsecureJsWOptions(); + } + + // Test the updateReplaceInsecureJs operation with a valid options model parameter + @Test + public void testUpdateReplaceInsecureJsWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"replace_insecure_js\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateReplaceInsecureJsPath = "/v1/testString/zones/testString/settings/replace_insecure_js"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateReplaceInsecureJsOptions model + UpdateReplaceInsecureJsOptions updateReplaceInsecureJsOptionsModel = new UpdateReplaceInsecureJsOptions.Builder() + .value("off") + .build(); + + // Invoke updateReplaceInsecureJs() with a valid options model and verify the result + Response response = zonesSettingsService.updateReplaceInsecureJs(updateReplaceInsecureJsOptionsModel).execute(); + assertNotNull(response); + ReplaceInsecureJsResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PATCH"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateReplaceInsecureJsPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateReplaceInsecureJs operation with and without retries enabled + @Test + public void testUpdateReplaceInsecureJsWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateReplaceInsecureJsWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateReplaceInsecureJsWOptions(); + } + + // Test the getEmailObfuscation operation with a valid options model parameter + @Test + public void testGetEmailObfuscationWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"email_obfuscation\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String getEmailObfuscationPath = "/v1/testString/zones/testString/settings/email_obfuscation"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetEmailObfuscationOptions model + GetEmailObfuscationOptions getEmailObfuscationOptionsModel = new GetEmailObfuscationOptions(); + + // Invoke getEmailObfuscation() with a valid options model and verify the result + Response response = zonesSettingsService.getEmailObfuscation(getEmailObfuscationOptionsModel).execute(); + assertNotNull(response); + EmailObfuscationResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getEmailObfuscationPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the getEmailObfuscation operation with and without retries enabled + @Test + public void testGetEmailObfuscationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testGetEmailObfuscationWOptions(); + + zonesSettingsService.disableRetries(); + testGetEmailObfuscationWOptions(); + } + + // Test the updateEmailObfuscation operation with a valid options model parameter + @Test + public void testUpdateEmailObfuscationWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"result\": {\"id\": \"email_obfuscation\", \"value\": \"off\", \"editable\": true, \"modified_on\": \"2017-01-01T05:20:00.123Z\"}, \"success\": true, \"errors\": [[\"errors\"]], \"messages\": [[\"messages\"]]}"; + String updateEmailObfuscationPath = "/v1/testString/zones/testString/settings/email_obfuscation"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the UpdateEmailObfuscationOptions model + UpdateEmailObfuscationOptions updateEmailObfuscationOptionsModel = new UpdateEmailObfuscationOptions.Builder() + .value("off") + .build(); + + // Invoke updateEmailObfuscation() with a valid options model and verify the result + Response response = zonesSettingsService.updateEmailObfuscation(updateEmailObfuscationOptionsModel).execute(); + assertNotNull(response); + EmailObfuscationResp responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PATCH"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateEmailObfuscationPath); + // Verify that there is no query string + Map query = TestUtilities.parseQueryString(request); + assertNull(query); + } + + // Test the updateEmailObfuscation operation with and without retries enabled + @Test + public void testUpdateEmailObfuscationWRetries() throws Throwable { + zonesSettingsService.enableRetries(4, 30); + testUpdateEmailObfuscationWOptions(); + + zonesSettingsService.disableRetries(); + testUpdateEmailObfuscationWOptions(); + } + + // Perform setup needed before each test method @BeforeMethod - public void setUpMockServer() { + public void beforeEachTest() { + // Start the mock server. try { - server = new MockWebServer(); - // register handler - server.start(); - } - catch (IOException err) { - fail("Failed to instantiate mock web server"); + server = new MockWebServer(); + server.start(); + } catch (IOException err) { + fail("Failed to instantiate mock web server"); } + + // Construct an instance of the service + constructClientService(); } + // Perform tear down after each test method @AfterMethod - public void tearDownMockServer() throws IOException { + public void afterEachTest() throws IOException { server.shutdown(); zonesSettingsService = null; } + + // Constructs an instance of the service to be used by the tests + public void constructClientService() { + System.setProperty("TESTSERVICE_AUTH_TYPE", "noAuth"); + final String serviceName = "testService"; + // set mock values for global params + String crn = "testString"; + String zoneIdentifier = "testString"; + + zonesSettingsService = ZonesSettings.newInstance(crn, zoneIdentifier, serviceName); + String url = server.url("/").toString(); + zonesSettingsService.setServiceUrl(url); + } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResultTest.java index 2bde0b077..bb2ced7fe 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespTest.java index 0204bc1a6..273e61e3f 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AlwaysUseHttpsRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsResp; import com.ibm.cloud.networking.zones_settings.v1.model.AlwaysUseHttpsRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResultTest.java index 157588aec..8b96601e4 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespTest.java index df61633ea..af8592d72 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/AutomaticHttpsRewritesRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesResp; import com.ibm.cloud.networking.zones_settings.v1.model.AutomaticHttpsRewritesRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtRespTest.java new file mode 100644 index 000000000..feb53ffc1 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtRespTest.java @@ -0,0 +1,41 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtResp; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtSettings; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the BotMgtResp model. + */ +public class BotMgtRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testBotMgtResp() throws Throwable { + BotMgtResp botMgtRespModel = new BotMgtResp(); + assertNull(botMgtRespModel.isSuccess()); + assertNull(botMgtRespModel.getErrors()); + assertNull(botMgtRespModel.getMessages()); + assertNull(botMgtRespModel.getResult()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtSettingsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtSettingsTest.java new file mode 100644 index 000000000..cde73b7be --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BotMgtSettingsTest.java @@ -0,0 +1,54 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.BotMgtSettings; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the BotMgtSettings model. + */ +public class BotMgtSettingsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testBotMgtSettings() throws Throwable { + BotMgtSettings botMgtSettingsModel = new BotMgtSettings.Builder() + .sessionScore(false) + .enableJs(false) + .useLatestModel(false) + .aiBotsProtection("block") + .build(); + assertEquals(botMgtSettingsModel.sessionScore(), Boolean.valueOf(false)); + assertEquals(botMgtSettingsModel.enableJs(), Boolean.valueOf(false)); + assertEquals(botMgtSettingsModel.useLatestModel(), Boolean.valueOf(false)); + assertEquals(botMgtSettingsModel.aiBotsProtection(), "block"); + + String json = TestUtilities.serialize(botMgtSettingsModel); + + BotMgtSettings botMgtSettingsModelNew = TestUtilities.deserialize(json, BotMgtSettings.class); + assertTrue(botMgtSettingsModelNew instanceof BotMgtSettings); + assertEquals(botMgtSettingsModelNew.sessionScore(), Boolean.valueOf(false)); + assertEquals(botMgtSettingsModelNew.enableJs(), Boolean.valueOf(false)); + assertEquals(botMgtSettingsModelNew.useLatestModel(), Boolean.valueOf(false)); + assertEquals(botMgtSettingsModelNew.aiBotsProtection(), "block"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespResultTest.java new file mode 100644 index 000000000..faf06f8cd --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespResultTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.BrotliRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the BrotliRespResult model. + */ +public class BrotliRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testBrotliRespResult() throws Throwable { + BrotliRespResult brotliRespResultModel = new BrotliRespResult(); + assertNull(brotliRespResultModel.getId()); + assertNull(brotliRespResultModel.getValue()); + assertNull(brotliRespResultModel.isEditable()); + assertNull(brotliRespResultModel.getModifiedOn()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespTest.java new file mode 100644 index 000000000..3bb3bdfa8 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrotliRespTest.java @@ -0,0 +1,42 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import com.ibm.cloud.networking.zones_settings.v1.model.BrotliResp; +import com.ibm.cloud.networking.zones_settings.v1.model.BrotliRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the BrotliResp model. + */ +public class BrotliRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testBrotliResp() throws Throwable { + BrotliResp brotliRespModel = new BrotliResp(); + assertNull(brotliRespModel.getResult()); + assertNull(brotliRespModel.isSuccess()); + assertNull(brotliRespModel.getErrors()); + assertNull(brotliRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResultTest.java index 84c6a75f4..f064d1b7a 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespTest.java index 1c067ebf9..580eb1f49 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/BrowserCheckRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckResp; import com.ibm.cloud.networking.zones_settings.v1.model.BrowserCheckRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResultTest.java index 23f69562b..810c2c56f 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ChallengeTtlRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespTest.java index e4a90db47..4f490616d 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ChallengeTtlRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.ChallengeTtlResp; import com.ibm.cloud.networking.zones_settings.v1.model.ChallengeTtlRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResultTest.java index f846a058f..0044e0a1f 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.CiphersRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespTest.java index 4505e0131..fd086ccbb 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CiphersRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,13 +13,12 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.CiphersResp; import com.ibm.cloud.networking.zones_settings.v1.model.CiphersRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import org.testng.annotations.Test; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponseTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponseTest.java index 5e77ccc0b..90f03f005 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponseTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/CnameFlatteningResponseTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.CnameFlatteningResponse; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespResultTest.java new file mode 100644 index 000000000..d10af201f --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespResultTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.EmailObfuscationRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the EmailObfuscationRespResult model. + */ +public class EmailObfuscationRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testEmailObfuscationRespResult() throws Throwable { + EmailObfuscationRespResult emailObfuscationRespResultModel = new EmailObfuscationRespResult(); + assertNull(emailObfuscationRespResultModel.getId()); + assertNull(emailObfuscationRespResultModel.getValue()); + assertNull(emailObfuscationRespResultModel.isEditable()); + assertNull(emailObfuscationRespResultModel.getModifiedOn()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespTest.java new file mode 100644 index 000000000..ef724f8d4 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/EmailObfuscationRespTest.java @@ -0,0 +1,42 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import com.ibm.cloud.networking.zones_settings.v1.model.EmailObfuscationResp; +import com.ibm.cloud.networking.zones_settings.v1.model.EmailObfuscationRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the EmailObfuscationResp model. + */ +public class EmailObfuscationRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testEmailObfuscationResp() throws Throwable { + EmailObfuscationResp emailObfuscationRespModel = new EmailObfuscationResp(); + assertNull(emailObfuscationRespModel.getResult()); + assertNull(emailObfuscationRespModel.isSuccess()); + assertNull(emailObfuscationRespModel.getErrors()); + assertNull(emailObfuscationRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptionsTest.java index 0fbbd726c..d7882087d 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAlwaysUseHttpsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptionsTest.java index 78c83f3f7..52d629c5c 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetAutomaticHttpsRewritesOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetAutomaticHttpsRewritesOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBotManagementOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBotManagementOptionsTest.java new file mode 100644 index 000000000..fa94d0ebc --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBotManagementOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetBotManagementOptions model. + */ +public class GetBotManagementOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetBotManagementOptions() throws Throwable { + GetBotManagementOptions getBotManagementOptionsModel = new GetBotManagementOptions(); + assertNotNull(getBotManagementOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrotliOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrotliOptionsTest.java new file mode 100644 index 000000000..cebc846c4 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrotliOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetBrotliOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetBrotliOptions model. + */ +public class GetBrotliOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetBrotliOptions() throws Throwable { + GetBrotliOptions getBrotliOptionsModel = new GetBrotliOptions(); + assertNotNull(getBrotliOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptionsTest.java index 7112a9dd6..a1328ee4a 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetBrowserCheckOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptionsTest.java index d48f61bf2..10c5b3c2b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetChallengeTtlOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptionsTest.java index 7385ef27d..170d75f68 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetCiphersOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetCiphersOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEmailObfuscationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEmailObfuscationOptionsTest.java new file mode 100644 index 000000000..01a39372b --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEmailObfuscationOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetEmailObfuscationOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetEmailObfuscationOptions model. + */ +public class GetEmailObfuscationOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetEmailObfuscationOptions() throws Throwable { + GetEmailObfuscationOptions getEmailObfuscationOptionsModel = new GetEmailObfuscationOptions(); + assertNotNull(getEmailObfuscationOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptionsTest.java index d39aeed0a..cb8f0560c 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetEnableErrorPagesOnOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptionsTest.java index af2095d35..7d2c4a89e 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHotlinkProtectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2OptionsTest.java index 81bf670df..9250a97a2 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp2OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetHttp2Options; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3OptionsTest.java index 3dceed06c..ee2b85e9b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetHttp3OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptionsTest.java index 76b69c19f..e3a972879 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageLoadOptimizationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetImageLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptionsTest.java index 9ce03cd5b..9fff7a2f5 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetImageSizeOptimizationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptionsTest.java index 8308d48ad..58639c840 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpGeolocationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6OptionsTest.java index 0adc1907a..f6cbe500b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetIpv6OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetIpv6Options; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetLogRetentionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetLogRetentionOptionsTest.java new file mode 100644 index 000000000..62fff59ae --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetLogRetentionOptionsTest.java @@ -0,0 +1,47 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetLogRetentionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetLogRetentionOptions model. + */ +public class GetLogRetentionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetLogRetentionOptions() throws Throwable { + GetLogRetentionOptions getLogRetentionOptionsModel = new GetLogRetentionOptions.Builder() + .crn("testString") + .zoneIdentifier("testString") + .build(); + assertEquals(getLogRetentionOptionsModel.crn(), "testString"); + assertEquals(getLogRetentionOptionsModel.zoneIdentifier(), "testString"); + } + + @Test(expectedExceptions = IllegalArgumentException.class) + public void testGetLogRetentionOptionsError() throws Throwable { + new GetLogRetentionOptions.Builder().build(); + } + +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptionsTest.java index 216c961c2..af188c8c8 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMaxUploadOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptionsTest.java index 1c2a74f4e..aabf4fc36 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinTlsVersionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptionsTest.java index 80f684be1..2639435ec 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMinifyOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptionsTest.java index ace424726..d122fb109 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetMobileRedirectOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptionsTest.java index 5f7551c8a..bb3aca8f7 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticEncryptionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticOnionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticOnionOptionsTest.java new file mode 100644 index 000000000..7a7688893 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOpportunisticOnionOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetOpportunisticOnionOptions model. + */ +public class GetOpportunisticOnionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetOpportunisticOnionOptions() throws Throwable { + GetOpportunisticOnionOptions getOpportunisticOnionOptionsModel = new GetOpportunisticOnionOptions(); + assertNotNull(getOpportunisticOnionOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginMaxHttpVersionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginMaxHttpVersionOptionsTest.java new file mode 100644 index 000000000..71c12c433 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginMaxHttpVersionOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetOriginMaxHttpVersionOptions model. + */ +public class GetOriginMaxHttpVersionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetOriginMaxHttpVersionOptions() throws Throwable { + GetOriginMaxHttpVersionOptions getOriginMaxHttpVersionOptionsModel = new GetOriginMaxHttpVersionOptions(); + assertNotNull(getOriginMaxHttpVersionOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginPostQuantumEncryptionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginPostQuantumEncryptionOptionsTest.java new file mode 100644 index 000000000..ff5deede8 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetOriginPostQuantumEncryptionOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetOriginPostQuantumEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetOriginPostQuantumEncryptionOptions model. + */ +public class GetOriginPostQuantumEncryptionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetOriginPostQuantumEncryptionOptions() throws Throwable { + GetOriginPostQuantumEncryptionOptions getOriginPostQuantumEncryptionOptionsModel = new GetOriginPostQuantumEncryptionOptions(); + assertNotNull(getOriginPostQuantumEncryptionOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptionsTest.java index 48aa34337..c56ac1603 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPrefetchPreloadOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetPrefetchPreloadOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetProxyReadTimeoutOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetProxyReadTimeoutOptionsTest.java new file mode 100644 index 000000000..f4cfc882d --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetProxyReadTimeoutOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetProxyReadTimeoutOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetProxyReadTimeoutOptions model. + */ +public class GetProxyReadTimeoutOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetProxyReadTimeoutOptions() throws Throwable { + GetProxyReadTimeoutOptions getProxyReadTimeoutOptionsModel = new GetProxyReadTimeoutOptions(); + assertNotNull(getProxyReadTimeoutOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4OptionsTest.java index 85ac19181..e367753df 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetPseudoIpv4OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetPseudoIpv4Options; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetReplaceInsecureJsOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetReplaceInsecureJsOptionsTest.java new file mode 100644 index 000000000..0f62e6ecc --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetReplaceInsecureJsOptionsTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.GetReplaceInsecureJsOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetReplaceInsecureJsOptions model. + */ +public class GetReplaceInsecureJsOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetReplaceInsecureJsOptions() throws Throwable { + GetReplaceInsecureJsOptions getReplaceInsecureJsOptionsModel = new GetReplaceInsecureJsOptions(); + assertNotNull(getReplaceInsecureJsOptionsModel); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptionsTest.java index 95c10f7ff..04e08a72e 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetResponseBufferingOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptionsTest.java index c7ae2d930..d7f6ab4db 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetScriptLoadOptimizationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptionsTest.java index b34c7073e..6e8cc4f1b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetSecurityHeaderOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetSecurityHeaderOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptionsTest.java index 5612aad4a..e65709f5a 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetServerSideExcludeOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetServerSideExcludeOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptionsTest.java index 1b08893b6..6ad6d6665 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTlsClientAuthOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetTlsClientAuthOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptionsTest.java index 95afbeb6e..bf5692710 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetTrueClientIpOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetTrueClientIpOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptionsTest.java index 4392d81b9..c9a369fcd 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebApplicationFirewallOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetWebApplicationFirewallOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptionsTest.java index c038681f7..093150139 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetWebSocketsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetWebSocketsOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptionsTest.java index a9b6b0bb6..28068d52e 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneCnameFlatteningOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetZoneCnameFlatteningOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptionsTest.java index 408abf1f5..b030b3bf8 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/GetZoneDnssecOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.GetZoneDnssecOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResultTest.java index 36142cd8e..370d13b5b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.HotlinkProtectionRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespTest.java index 1b76cd913..a3e59741b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/HotlinkProtectionRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.HotlinkProtectionResp; import com.ibm.cloud.networking.zones_settings.v1.model.HotlinkProtectionRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResultTest.java index b8ec1878f..7cd394945 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.Http2RespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespTest.java index d5c2aff6c..76b2c3ce8 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http2RespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.Http2Resp; import com.ibm.cloud.networking.zones_settings.v1.model.Http2RespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResultTest.java index 4abd21474..ad32a01ab 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespTest.java index f24cc8b58..a73566b27 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Http3RespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResultTest.java index 0e4b64ba2..cfe86a656 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ImageLoadOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespTest.java index beaf2b3c9..37a06a7b0 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageLoadOptimizationRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.ImageLoadOptimizationResp; import com.ibm.cloud.networking.zones_settings.v1.model.ImageLoadOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResultTest.java index 58db51158..0a11b7ca5 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ImageSizeOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespTest.java index a587a9095..1d7d8e81f 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ImageSizeOptimizationRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.ImageSizeOptimizationResp; import com.ibm.cloud.networking.zones_settings.v1.model.ImageSizeOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResultTest.java index 577e98335..5541ceccf 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.IpGeolocationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespTest.java index 470c97423..98c2bbf04 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/IpGeolocationRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.IpGeolocationResp; import com.ibm.cloud.networking.zones_settings.v1.model.IpGeolocationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResultTest.java index 8f39f49cc..bc0c028d2 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6RespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespTest.java index 8a93c7f05..f36d3e4aa 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/Ipv6RespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6Resp; import com.ibm.cloud.networking.zones_settings.v1.model.Ipv6RespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespResultTest.java new file mode 100644 index 000000000..276368c43 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespResultTest.java @@ -0,0 +1,37 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.LogRetentionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the LogRetentionRespResult model. + */ +public class LogRetentionRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testLogRetentionRespResult() throws Throwable { + LogRetentionRespResult logRetentionRespResultModel = new LogRetentionRespResult(); + assertNull(logRetentionRespResultModel.isFlag()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespTest.java new file mode 100644 index 000000000..39053004d --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/LogRetentionRespTest.java @@ -0,0 +1,41 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.LogRetentionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.LogRetentionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the LogRetentionResp model. + */ +public class LogRetentionRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testLogRetentionResp() throws Throwable { + LogRetentionResp logRetentionRespModel = new LogRetentionResp(); + assertNull(logRetentionRespModel.isSuccess()); + assertNull(logRetentionRespModel.getResult()); + assertNull(logRetentionRespModel.getErrors()); + assertNull(logRetentionRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResultTest.java index 0ddbe4cd7..8281772a0 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespTest.java index 0e0b62e1b..8c7ef3fec 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MaxUploadRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadResp; import com.ibm.cloud.networking.zones_settings.v1.model.MaxUploadRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResultTest.java index 3051bf99e..e2a9c37fe 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MinTlsVersionRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespTest.java index 746201049..c0b8048d3 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinTlsVersionRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.MinTlsVersionResp; import com.ibm.cloud.networking.zones_settings.v1.model.MinTlsVersionRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultTest.java index 3fb929532..294e7b95c 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValueTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValueTest.java index b23044546..ab0f8177e 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValueTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespResultValueTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespTest.java index 281e83620..e72343770 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifyRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,11 +13,12 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyResp; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MinifyRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValueTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValueTest.java index 1b2a068e1..09726e735 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValueTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MinifySettingValueTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MinifySettingValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,21 +32,21 @@ public class MinifySettingValueTest { @Test public void testMinifySettingValue() throws Throwable { MinifySettingValue minifySettingValueModel = new MinifySettingValue.Builder() - .css("false") - .html("false") - .js("false") + .css("off") + .html("off") + .js("off") .build(); - assertEquals(minifySettingValueModel.css(), "false"); - assertEquals(minifySettingValueModel.html(), "false"); - assertEquals(minifySettingValueModel.js(), "false"); + assertEquals(minifySettingValueModel.css(), "off"); + assertEquals(minifySettingValueModel.html(), "off"); + assertEquals(minifySettingValueModel.js(), "off"); String json = TestUtilities.serialize(minifySettingValueModel); MinifySettingValue minifySettingValueModelNew = TestUtilities.deserialize(json, MinifySettingValue.class); assertTrue(minifySettingValueModelNew instanceof MinifySettingValue); - assertEquals(minifySettingValueModelNew.css(), "false"); - assertEquals(minifySettingValueModelNew.html(), "false"); - assertEquals(minifySettingValueModelNew.js(), "false"); + assertEquals(minifySettingValueModelNew.css(), "off"); + assertEquals(minifySettingValueModelNew.html(), "off"); + assertEquals(minifySettingValueModelNew.js(), "off"); } @Test(expectedExceptions = IllegalArgumentException.class) diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValueTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValueTest.java index 98a98e77f..7c5359561 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValueTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirecSettingValueTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirecSettingValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,11 +32,11 @@ public class MobileRedirecSettingValueTest { @Test public void testMobileRedirecSettingValue() throws Throwable { MobileRedirecSettingValue mobileRedirecSettingValueModel = new MobileRedirecSettingValue.Builder() - .status("true") + .status("on") .mobileSubdomain("m") .stripUri(false) .build(); - assertEquals(mobileRedirecSettingValueModel.status(), "true"); + assertEquals(mobileRedirecSettingValueModel.status(), "on"); assertEquals(mobileRedirecSettingValueModel.mobileSubdomain(), "m"); assertEquals(mobileRedirecSettingValueModel.stripUri(), Boolean.valueOf(false)); @@ -44,7 +44,7 @@ public void testMobileRedirecSettingValue() throws Throwable { MobileRedirecSettingValue mobileRedirecSettingValueModelNew = TestUtilities.deserialize(json, MobileRedirecSettingValue.class); assertTrue(mobileRedirecSettingValueModelNew instanceof MobileRedirecSettingValue); - assertEquals(mobileRedirecSettingValueModelNew.status(), "true"); + assertEquals(mobileRedirecSettingValueModelNew.status(), "on"); assertEquals(mobileRedirecSettingValueModelNew.mobileSubdomain(), "m"); assertEquals(mobileRedirecSettingValueModelNew.stripUri(), Boolean.valueOf(false)); } diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultTest.java index 816d33548..8ee1a314b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValueTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValueTest.java index 20ec6c6f7..ff771200e 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValueTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespResultValueTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespTest.java index c52087008..aec8685aa 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/MobileRedirectRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,11 +13,12 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectResp; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirectRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResultTest.java index e4da6cdca..6a1b81bd7 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespTest.java index 0fc02455f..0cd2836dc 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticEncryptionRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionResp; import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticEncryptionRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespResultTest.java new file mode 100644 index 000000000..b47a1f7a7 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespResultTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticOnionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the OpportunisticOnionRespResult model. + */ +public class OpportunisticOnionRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testOpportunisticOnionRespResult() throws Throwable { + OpportunisticOnionRespResult opportunisticOnionRespResultModel = new OpportunisticOnionRespResult(); + assertNull(opportunisticOnionRespResultModel.getId()); + assertNull(opportunisticOnionRespResultModel.getValue()); + assertNull(opportunisticOnionRespResultModel.isEditable()); + assertNull(opportunisticOnionRespResultModel.getModifiedOn()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespTest.java new file mode 100644 index 000000000..8445b465d --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OpportunisticOnionRespTest.java @@ -0,0 +1,42 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticOnionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OpportunisticOnionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the OpportunisticOnionResp model. + */ +public class OpportunisticOnionRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testOpportunisticOnionResp() throws Throwable { + OpportunisticOnionResp opportunisticOnionRespModel = new OpportunisticOnionResp(); + assertNull(opportunisticOnionRespModel.getResult()); + assertNull(opportunisticOnionRespModel.isSuccess()); + assertNull(opportunisticOnionRespModel.getErrors()); + assertNull(opportunisticOnionRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResultTest.java index 4b4c7f442..b3bbc7951 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespTest.java index 1eedd0664..416a61f36 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginErrorPagePassThruRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruResp; import com.ibm.cloud.networking.zones_settings.v1.model.OriginErrorPagePassThruRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespResultTest.java new file mode 100644 index 000000000..0a9f9550e --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespResultTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginMaxHttpVersionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the OriginMaxHttpVersionRespResult model. + */ +public class OriginMaxHttpVersionRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testOriginMaxHttpVersionRespResult() throws Throwable { + OriginMaxHttpVersionRespResult originMaxHttpVersionRespResultModel = new OriginMaxHttpVersionRespResult(); + assertNull(originMaxHttpVersionRespResultModel.getId()); + assertNull(originMaxHttpVersionRespResultModel.getValue()); + assertNull(originMaxHttpVersionRespResultModel.isEditable()); + assertNull(originMaxHttpVersionRespResultModel.getModifiedOn()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespTest.java new file mode 100644 index 000000000..329b33482 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginMaxHttpVersionRespTest.java @@ -0,0 +1,42 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginMaxHttpVersionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginMaxHttpVersionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the OriginMaxHttpVersionResp model. + */ +public class OriginMaxHttpVersionRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testOriginMaxHttpVersionResp() throws Throwable { + OriginMaxHttpVersionResp originMaxHttpVersionRespModel = new OriginMaxHttpVersionResp(); + assertNull(originMaxHttpVersionRespModel.getResult()); + assertNull(originMaxHttpVersionRespModel.isSuccess()); + assertNull(originMaxHttpVersionRespModel.getErrors()); + assertNull(originMaxHttpVersionRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespResultTest.java new file mode 100644 index 000000000..676c9dcbb --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespResultTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginPostQuantumEncryptionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the OriginPostQuantumEncryptionRespResult model. + */ +public class OriginPostQuantumEncryptionRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testOriginPostQuantumEncryptionRespResult() throws Throwable { + OriginPostQuantumEncryptionRespResult originPostQuantumEncryptionRespResultModel = new OriginPostQuantumEncryptionRespResult(); + assertNull(originPostQuantumEncryptionRespResultModel.getId()); + assertNull(originPostQuantumEncryptionRespResultModel.getValue()); + assertNull(originPostQuantumEncryptionRespResultModel.isEditable()); + assertNull(originPostQuantumEncryptionRespResultModel.getModifiedOn()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespTest.java new file mode 100644 index 000000000..724c201af --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/OriginPostQuantumEncryptionRespTest.java @@ -0,0 +1,42 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginPostQuantumEncryptionResp; +import com.ibm.cloud.networking.zones_settings.v1.model.OriginPostQuantumEncryptionRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the OriginPostQuantumEncryptionResp model. + */ +public class OriginPostQuantumEncryptionRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testOriginPostQuantumEncryptionResp() throws Throwable { + OriginPostQuantumEncryptionResp originPostQuantumEncryptionRespModel = new OriginPostQuantumEncryptionResp(); + assertNull(originPostQuantumEncryptionRespModel.getResult()); + assertNull(originPostQuantumEncryptionRespModel.isSuccess()); + assertNull(originPostQuantumEncryptionRespModel.getErrors()); + assertNull(originPostQuantumEncryptionRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResultTest.java index 8b5f94a30..280f1673b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespTest.java index 1ab05087d..c2c7e7221 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PrefetchPreloadRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadResp; import com.ibm.cloud.networking.zones_settings.v1.model.PrefetchPreloadRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespResultTest.java new file mode 100644 index 000000000..d6b61b2c4 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespResultTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.ProxyReadTimeoutRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the ProxyReadTimeoutRespResult model. + */ +public class ProxyReadTimeoutRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testProxyReadTimeoutRespResult() throws Throwable { + ProxyReadTimeoutRespResult proxyReadTimeoutRespResultModel = new ProxyReadTimeoutRespResult(); + assertNull(proxyReadTimeoutRespResultModel.getId()); + assertNull(proxyReadTimeoutRespResultModel.getValue()); + assertNull(proxyReadTimeoutRespResultModel.isEditable()); + assertNull(proxyReadTimeoutRespResultModel.getModifiedOn()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespTest.java new file mode 100644 index 000000000..919eb32d9 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ProxyReadTimeoutRespTest.java @@ -0,0 +1,42 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import com.ibm.cloud.networking.zones_settings.v1.model.ProxyReadTimeoutResp; +import com.ibm.cloud.networking.zones_settings.v1.model.ProxyReadTimeoutRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the ProxyReadTimeoutResp model. + */ +public class ProxyReadTimeoutRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testProxyReadTimeoutResp() throws Throwable { + ProxyReadTimeoutResp proxyReadTimeoutRespModel = new ProxyReadTimeoutResp(); + assertNull(proxyReadTimeoutRespModel.getResult()); + assertNull(proxyReadTimeoutRespModel.isSuccess()); + assertNull(proxyReadTimeoutRespModel.getErrors()); + assertNull(proxyReadTimeoutRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResultTest.java index 5b2f48806..b24bc5538 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4RespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespTest.java index 10354a9f8..615035321 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/PseudoIpv4RespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4Resp; import com.ibm.cloud.networking.zones_settings.v1.model.PseudoIpv4RespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespResultTest.java new file mode 100644 index 000000000..3f0064f12 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespResultTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.ReplaceInsecureJsRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the ReplaceInsecureJsRespResult model. + */ +public class ReplaceInsecureJsRespResultTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testReplaceInsecureJsRespResult() throws Throwable { + ReplaceInsecureJsRespResult replaceInsecureJsRespResultModel = new ReplaceInsecureJsRespResult(); + assertNull(replaceInsecureJsRespResultModel.getId()); + assertNull(replaceInsecureJsRespResultModel.getValue()); + assertNull(replaceInsecureJsRespResultModel.isEditable()); + assertNull(replaceInsecureJsRespResultModel.getModifiedOn()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespTest.java new file mode 100644 index 000000000..4bb72e67e --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ReplaceInsecureJsRespTest.java @@ -0,0 +1,42 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import com.ibm.cloud.networking.zones_settings.v1.model.ReplaceInsecureJsResp; +import com.ibm.cloud.networking.zones_settings.v1.model.ReplaceInsecureJsRespResult; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the ReplaceInsecureJsResp model. + */ +public class ReplaceInsecureJsRespTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testReplaceInsecureJsResp() throws Throwable { + ReplaceInsecureJsResp replaceInsecureJsRespModel = new ReplaceInsecureJsResp(); + assertNull(replaceInsecureJsRespModel.getResult()); + assertNull(replaceInsecureJsRespModel.isSuccess()); + assertNull(replaceInsecureJsRespModel.getErrors()); + assertNull(replaceInsecureJsRespModel.getMessages()); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResultTest.java index 39def204a..329cabdc6 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespTest.java index 5ff607882..705945c15 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ResponseBufferingRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingResp; import com.ibm.cloud.networking.zones_settings.v1.model.ResponseBufferingRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResultTest.java index 76af65056..894cff266 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ScriptLoadOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespTest.java index 8956b9042..6141a2160 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ScriptLoadOptimizationRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.ScriptLoadOptimizationResp; import com.ibm.cloud.networking.zones_settings.v1.model.ScriptLoadOptimizationRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultTest.java index b052afb69..1edba3aed 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,11 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurityTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurityTest.java index b0782b894..63af21d65 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurityTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueStrictTransportSecurityTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -35,6 +35,7 @@ public void testSecurityHeaderRespResultValueStrictTransportSecurity() throws Th assertNull(securityHeaderRespResultValueStrictTransportSecurityModel.isEnabled()); assertNull(securityHeaderRespResultValueStrictTransportSecurityModel.getMaxAge()); assertNull(securityHeaderRespResultValueStrictTransportSecurityModel.isIncludeSubdomains()); + assertNull(securityHeaderRespResultValueStrictTransportSecurityModel.isPreload()); assertNull(securityHeaderRespResultValueStrictTransportSecurityModel.isNosniff()); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueTest.java index fc2c99ee6..180e656cd 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespResultValueTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespTest.java index 370df4bdf..806c4e0a9 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,12 +13,13 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderResp; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResult; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValue; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderRespResultValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurityTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurityTest.java index 3f825856c..c2cefe981 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurityTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueStrictTransportSecurityTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderSettingValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -35,11 +35,13 @@ public void testSecurityHeaderSettingValueStrictTransportSecurity() throws Throw .enabled(true) .maxAge(Long.valueOf("86400")) .includeSubdomains(true) + .preload(true) .nosniff(true) .build(); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.enabled(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.maxAge(), Long.valueOf("86400")); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.includeSubdomains(), Boolean.valueOf(true)); + assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.preload(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.nosniff(), Boolean.valueOf(true)); String json = TestUtilities.serialize(securityHeaderSettingValueStrictTransportSecurityModel); @@ -49,6 +51,7 @@ public void testSecurityHeaderSettingValueStrictTransportSecurity() throws Throw assertEquals(securityHeaderSettingValueStrictTransportSecurityModelNew.enabled(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModelNew.maxAge(), Long.valueOf("86400")); assertEquals(securityHeaderSettingValueStrictTransportSecurityModelNew.includeSubdomains(), Boolean.valueOf(true)); + assertEquals(securityHeaderSettingValueStrictTransportSecurityModelNew.preload(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModelNew.nosniff(), Boolean.valueOf(true)); } diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueTest.java index ef51450b6..9c1fccebd 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/SecurityHeaderSettingValueTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderSettingValue; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderSettingValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -36,11 +36,13 @@ public void testSecurityHeaderSettingValue() throws Throwable { .enabled(true) .maxAge(Long.valueOf("86400")) .includeSubdomains(true) + .preload(true) .nosniff(true) .build(); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.enabled(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.maxAge(), Long.valueOf("86400")); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.includeSubdomains(), Boolean.valueOf(true)); + assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.preload(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.nosniff(), Boolean.valueOf(true)); SecurityHeaderSettingValue securityHeaderSettingValueModel = new SecurityHeaderSettingValue.Builder() diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResultTest.java index 8e39b465a..24bdf7314 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ServerSideExcludeRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespTest.java index 16b22a0dd..3f46fda55 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ServerSideExcludeRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.ServerSideExcludeResp; import com.ibm.cloud.networking.zones_settings.v1.model.ServerSideExcludeRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResultTest.java index fe5ce5e1c..0a96a6d41 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.TlsClientAuthRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespTest.java index 7e1832784..3a86d0c96 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TlsClientAuthRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.TlsClientAuthResp; import com.ibm.cloud.networking.zones_settings.v1.model.TlsClientAuthRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResultTest.java index ba04d68bc..d9d8719aa 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.TrueClientIpRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespTest.java index ac3ebdbf3..756cc05b8 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/TrueClientIpRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.TrueClientIpResp; import com.ibm.cloud.networking.zones_settings.v1.model.TrueClientIpRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptionsTest.java index 5c4baa83f..41a129b2c 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAlwaysUseHttpsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAlwaysUseHttpsOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateAlwaysUseHttpsOptionsTest { @Test public void testUpdateAlwaysUseHttpsOptions() throws Throwable { UpdateAlwaysUseHttpsOptions updateAlwaysUseHttpsOptionsModel = new UpdateAlwaysUseHttpsOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateAlwaysUseHttpsOptionsModel.value(), "true"); + assertEquals(updateAlwaysUseHttpsOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptionsTest.java index ba39be2e3..2c85fe02b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateAutomaticHttpsRewritesOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateAutomaticHttpsRewritesOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateAutomaticHttpsRewritesOptionsTest { @Test public void testUpdateAutomaticHttpsRewritesOptions() throws Throwable { UpdateAutomaticHttpsRewritesOptions updateAutomaticHttpsRewritesOptionsModel = new UpdateAutomaticHttpsRewritesOptions.Builder() - .value("false") + .value("off") .build(); - assertEquals(updateAutomaticHttpsRewritesOptionsModel.value(), "false"); + assertEquals(updateAutomaticHttpsRewritesOptionsModel.value(), "off"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBotManagementOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBotManagementOptionsTest.java new file mode 100644 index 000000000..0da874459 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBotManagementOptionsTest.java @@ -0,0 +1,45 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBotManagementOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateBotManagementOptions model. + */ +public class UpdateBotManagementOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateBotManagementOptions() throws Throwable { + UpdateBotManagementOptions updateBotManagementOptionsModel = new UpdateBotManagementOptions.Builder() + .sessionScore(false) + .enableJs(false) + .useLatestModel(false) + .aiBotsProtection("block") + .build(); + assertEquals(updateBotManagementOptionsModel.sessionScore(), Boolean.valueOf(false)); + assertEquals(updateBotManagementOptionsModel.enableJs(), Boolean.valueOf(false)); + assertEquals(updateBotManagementOptionsModel.useLatestModel(), Boolean.valueOf(false)); + assertEquals(updateBotManagementOptionsModel.aiBotsProtection(), "block"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrotliOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrotliOptionsTest.java new file mode 100644 index 000000000..6470b24f2 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrotliOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrotliOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateBrotliOptions model. + */ +public class UpdateBrotliOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateBrotliOptions() throws Throwable { + UpdateBrotliOptions updateBrotliOptionsModel = new UpdateBrotliOptions.Builder() + .value("on") + .build(); + assertEquals(updateBrotliOptionsModel.value(), "on"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptionsTest.java index 66cfc3a17..53d19c996 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateBrowserCheckOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateBrowserCheckOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateBrowserCheckOptionsTest { @Test public void testUpdateBrowserCheckOptions() throws Throwable { UpdateBrowserCheckOptions updateBrowserCheckOptionsModel = new UpdateBrowserCheckOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateBrowserCheckOptionsModel.value(), "true"); + assertEquals(updateBrowserCheckOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptionsTest.java index 246fffb9a..a9f4b2809 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateChallengeTtlOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateChallengeTtlOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptionsTest.java index 9018ffa1d..0707039e6 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateCiphersOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,12 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateCiphersOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import org.testng.annotations.Test; @@ -34,8 +32,8 @@ public class UpdateCiphersOptionsTest { @Test public void testUpdateCiphersOptions() throws Throwable { UpdateCiphersOptions updateCiphersOptionsModel = new UpdateCiphersOptions.Builder() - .value(new java.util.ArrayList(java.util.Arrays.asList("ECDHE-ECDSA-AES128-GCM-SHA256"))) + .value(java.util.Arrays.asList("AES256-GCM-SHA384", "AES256-SHA256")) .build(); - assertEquals(updateCiphersOptionsModel.value(), new java.util.ArrayList(java.util.Arrays.asList("ECDHE-ECDSA-AES128-GCM-SHA256"))); + assertEquals(updateCiphersOptionsModel.value(), java.util.Arrays.asList("AES256-GCM-SHA384", "AES256-SHA256")); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEmailObfuscationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEmailObfuscationOptionsTest.java new file mode 100644 index 000000000..ac66b4337 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEmailObfuscationOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEmailObfuscationOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateEmailObfuscationOptions model. + */ +public class UpdateEmailObfuscationOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateEmailObfuscationOptions() throws Throwable { + UpdateEmailObfuscationOptions updateEmailObfuscationOptionsModel = new UpdateEmailObfuscationOptions.Builder() + .value("off") + .build(); + assertEquals(updateEmailObfuscationOptionsModel.value(), "off"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptionsTest.java index 4523540f1..646339419 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateEnableErrorPagesOnOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateEnableErrorPagesOnOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateEnableErrorPagesOnOptionsTest { @Test public void testUpdateEnableErrorPagesOnOptions() throws Throwable { UpdateEnableErrorPagesOnOptions updateEnableErrorPagesOnOptionsModel = new UpdateEnableErrorPagesOnOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateEnableErrorPagesOnOptionsModel.value(), "true"); + assertEquals(updateEnableErrorPagesOnOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptionsTest.java index b326c3432..0294f0875 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHotlinkProtectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHotlinkProtectionOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateHotlinkProtectionOptionsTest { @Test public void testUpdateHotlinkProtectionOptions() throws Throwable { UpdateHotlinkProtectionOptions updateHotlinkProtectionOptionsModel = new UpdateHotlinkProtectionOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateHotlinkProtectionOptionsModel.value(), "true"); + assertEquals(updateHotlinkProtectionOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2OptionsTest.java index 648d7f262..d79658477 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp2OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateHttp2Options; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateHttp2OptionsTest { @Test public void testUpdateHttp2Options() throws Throwable { UpdateHttp2Options updateHttp2OptionsModel = new UpdateHttp2Options.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateHttp2OptionsModel.value(), "true"); + assertEquals(updateHttp2OptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3OptionsTest.java index 7033fcb64..9e4be0112 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateHttp3OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2021. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptionsTest.java index f03e12f4b..7311104d7 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageLoadOptimizationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateImageLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateImageLoadOptimizationOptionsTest { @Test public void testUpdateImageLoadOptimizationOptions() throws Throwable { UpdateImageLoadOptimizationOptions updateImageLoadOptimizationOptionsModel = new UpdateImageLoadOptimizationOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateImageLoadOptimizationOptionsModel.value(), "true"); + assertEquals(updateImageLoadOptimizationOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptionsTest.java index ce9fdecc5..976c71301 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateImageSizeOptimizationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateImageSizeOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptionsTest.java index f3113f2f9..fb38d5d0d 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpGeolocationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpGeolocationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateIpGeolocationOptionsTest { @Test public void testUpdateIpGeolocationOptions() throws Throwable { UpdateIpGeolocationOptions updateIpGeolocationOptionsModel = new UpdateIpGeolocationOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateIpGeolocationOptionsModel.value(), "true"); + assertEquals(updateIpGeolocationOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6OptionsTest.java index 68051615d..bd42b69a4 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateIpv6OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateIpv6Options; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateIpv6OptionsTest { @Test public void testUpdateIpv6Options() throws Throwable { UpdateIpv6Options updateIpv6OptionsModel = new UpdateIpv6Options.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateIpv6OptionsModel.value(), "true"); + assertEquals(updateIpv6OptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateLogRetentionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateLogRetentionOptionsTest.java new file mode 100644 index 000000000..685b23b24 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateLogRetentionOptionsTest.java @@ -0,0 +1,49 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateLogRetentionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateLogRetentionOptions model. + */ +public class UpdateLogRetentionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateLogRetentionOptions() throws Throwable { + UpdateLogRetentionOptions updateLogRetentionOptionsModel = new UpdateLogRetentionOptions.Builder() + .crn("testString") + .zoneIdentifier("testString") + .flag(true) + .build(); + assertEquals(updateLogRetentionOptionsModel.crn(), "testString"); + assertEquals(updateLogRetentionOptionsModel.zoneIdentifier(), "testString"); + assertEquals(updateLogRetentionOptionsModel.flag(), Boolean.valueOf(true)); + } + + @Test(expectedExceptions = IllegalArgumentException.class) + public void testUpdateLogRetentionOptionsError() throws Throwable { + new UpdateLogRetentionOptions.Builder().build(); + } + +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptionsTest.java index b01585f40..d38587482 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMaxUploadOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMaxUploadOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptionsTest.java index 6076e2aee..b53eed1d0 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinTlsVersionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinTlsVersionOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptionsTest.java index 9c79c1abc..7f5c59b9a 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMinifyOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MinifySettingValue; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMinifyOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -33,13 +33,13 @@ public class UpdateMinifyOptionsTest { @Test public void testUpdateMinifyOptions() throws Throwable { MinifySettingValue minifySettingValueModel = new MinifySettingValue.Builder() - .css("false") - .html("false") - .js("false") + .css("off") + .html("off") + .js("off") .build(); - assertEquals(minifySettingValueModel.css(), "false"); - assertEquals(minifySettingValueModel.html(), "false"); - assertEquals(minifySettingValueModel.js(), "false"); + assertEquals(minifySettingValueModel.css(), "off"); + assertEquals(minifySettingValueModel.html(), "off"); + assertEquals(minifySettingValueModel.js(), "off"); UpdateMinifyOptions updateMinifyOptionsModel = new UpdateMinifyOptions.Builder() .value(minifySettingValueModel) diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptionsTest.java index 1a6adc3db..9f8d765fc 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateMobileRedirectOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.MobileRedirecSettingValue; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateMobileRedirectOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -33,11 +33,11 @@ public class UpdateMobileRedirectOptionsTest { @Test public void testUpdateMobileRedirectOptions() throws Throwable { MobileRedirecSettingValue mobileRedirecSettingValueModel = new MobileRedirecSettingValue.Builder() - .status("true") + .status("on") .mobileSubdomain("m") .stripUri(false) .build(); - assertEquals(mobileRedirecSettingValueModel.status(), "true"); + assertEquals(mobileRedirecSettingValueModel.status(), "on"); assertEquals(mobileRedirecSettingValueModel.mobileSubdomain(), "m"); assertEquals(mobileRedirecSettingValueModel.stripUri(), Boolean.valueOf(false)); diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptionsTest.java index fe03df92d..faf8c3aad 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticEncryptionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticEncryptionOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateOpportunisticEncryptionOptionsTest { @Test public void testUpdateOpportunisticEncryptionOptions() throws Throwable { UpdateOpportunisticEncryptionOptions updateOpportunisticEncryptionOptionsModel = new UpdateOpportunisticEncryptionOptions.Builder() - .value("false") + .value("off") .build(); - assertEquals(updateOpportunisticEncryptionOptionsModel.value(), "false"); + assertEquals(updateOpportunisticEncryptionOptionsModel.value(), "off"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticOnionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticOnionOptionsTest.java new file mode 100644 index 000000000..761ee781f --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOpportunisticOnionOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOpportunisticOnionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateOpportunisticOnionOptions model. + */ +public class UpdateOpportunisticOnionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateOpportunisticOnionOptions() throws Throwable { + UpdateOpportunisticOnionOptions updateOpportunisticOnionOptionsModel = new UpdateOpportunisticOnionOptions.Builder() + .value("off") + .build(); + assertEquals(updateOpportunisticOnionOptionsModel.value(), "off"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginMaxHttpVersionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginMaxHttpVersionOptionsTest.java new file mode 100644 index 000000000..42bcf32d9 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginMaxHttpVersionOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginMaxHttpVersionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateOriginMaxHttpVersionOptions model. + */ +public class UpdateOriginMaxHttpVersionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateOriginMaxHttpVersionOptions() throws Throwable { + UpdateOriginMaxHttpVersionOptions updateOriginMaxHttpVersionOptionsModel = new UpdateOriginMaxHttpVersionOptions.Builder() + .value("1") + .build(); + assertEquals(updateOriginMaxHttpVersionOptionsModel.value(), "1"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginPostQuantumEncryptionOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginPostQuantumEncryptionOptionsTest.java new file mode 100644 index 000000000..4ce2e3807 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateOriginPostQuantumEncryptionOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateOriginPostQuantumEncryptionOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateOriginPostQuantumEncryptionOptions model. + */ +public class UpdateOriginPostQuantumEncryptionOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateOriginPostQuantumEncryptionOptions() throws Throwable { + UpdateOriginPostQuantumEncryptionOptions updateOriginPostQuantumEncryptionOptionsModel = new UpdateOriginPostQuantumEncryptionOptions.Builder() + .value("preferred") + .build(); + assertEquals(updateOriginPostQuantumEncryptionOptionsModel.value(), "preferred"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptionsTest.java index 68d268edf..e0d6bedbd 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePrefetchPreloadOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePrefetchPreloadOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdatePrefetchPreloadOptionsTest { @Test public void testUpdatePrefetchPreloadOptions() throws Throwable { UpdatePrefetchPreloadOptions updatePrefetchPreloadOptionsModel = new UpdatePrefetchPreloadOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updatePrefetchPreloadOptionsModel.value(), "true"); + assertEquals(updatePrefetchPreloadOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateProxyReadTimeoutOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateProxyReadTimeoutOptionsTest.java new file mode 100644 index 000000000..34b34cb9b --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateProxyReadTimeoutOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateProxyReadTimeoutOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateProxyReadTimeoutOptions model. + */ +public class UpdateProxyReadTimeoutOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateProxyReadTimeoutOptions() throws Throwable { + UpdateProxyReadTimeoutOptions updateProxyReadTimeoutOptionsModel = new UpdateProxyReadTimeoutOptions.Builder() + .value(Double.valueOf("600")) + .build(); + assertEquals(updateProxyReadTimeoutOptionsModel.value(), Double.valueOf("600")); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4OptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4OptionsTest.java index 3d25c4d74..89e48fba5 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4OptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdatePseudoIpv4OptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdatePseudoIpv4Options; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateReplaceInsecureJsOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateReplaceInsecureJsOptionsTest.java new file mode 100644 index 000000000..ef6c466a0 --- /dev/null +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateReplaceInsecureJsOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.zones_settings.v1.model; + +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.networking.zones_settings.v1.model.UpdateReplaceInsecureJsOptions; +import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateReplaceInsecureJsOptions model. + */ +public class UpdateReplaceInsecureJsOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateReplaceInsecureJsOptions() throws Throwable { + UpdateReplaceInsecureJsOptions updateReplaceInsecureJsOptionsModel = new UpdateReplaceInsecureJsOptions.Builder() + .value("off") + .build(); + assertEquals(updateReplaceInsecureJsOptionsModel.value(), "off"); + } +} \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptionsTest.java index f0fddcad2..f011597fc 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateResponseBufferingOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateResponseBufferingOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateResponseBufferingOptionsTest { @Test public void testUpdateResponseBufferingOptions() throws Throwable { UpdateResponseBufferingOptions updateResponseBufferingOptionsModel = new UpdateResponseBufferingOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateResponseBufferingOptionsModel.value(), "true"); + assertEquals(updateResponseBufferingOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptionsTest.java index df771edff..0d33d9e8a 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateScriptLoadOptimizationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateScriptLoadOptimizationOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateScriptLoadOptimizationOptionsTest { @Test public void testUpdateScriptLoadOptimizationOptions() throws Throwable { UpdateScriptLoadOptimizationOptions updateScriptLoadOptimizationOptionsModel = new UpdateScriptLoadOptimizationOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateScriptLoadOptimizationOptionsModel.value(), "true"); + assertEquals(updateScriptLoadOptimizationOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptionsTest.java index ba50e2033..46ebc2c1f 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateSecurityHeaderOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,11 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderSettingValue; import com.ibm.cloud.networking.zones_settings.v1.model.SecurityHeaderSettingValueStrictTransportSecurity; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateSecurityHeaderOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -37,11 +37,13 @@ public void testUpdateSecurityHeaderOptions() throws Throwable { .enabled(true) .maxAge(Long.valueOf("86400")) .includeSubdomains(true) + .preload(true) .nosniff(true) .build(); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.enabled(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.maxAge(), Long.valueOf("86400")); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.includeSubdomains(), Boolean.valueOf(true)); + assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.preload(), Boolean.valueOf(true)); assertEquals(securityHeaderSettingValueStrictTransportSecurityModel.nosniff(), Boolean.valueOf(true)); SecurityHeaderSettingValue securityHeaderSettingValueModel = new SecurityHeaderSettingValue.Builder() diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptionsTest.java index e4afb8a5f..64eddb396 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateServerSideExcludeOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateServerSideExcludeOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateServerSideExcludeOptionsTest { @Test public void testUpdateServerSideExcludeOptions() throws Throwable { UpdateServerSideExcludeOptions updateServerSideExcludeOptionsModel = new UpdateServerSideExcludeOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateServerSideExcludeOptionsModel.value(), "true"); + assertEquals(updateServerSideExcludeOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptionsTest.java index d9d97cb73..6f38cca8b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTlsClientAuthOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateTlsClientAuthOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateTlsClientAuthOptionsTest { @Test public void testUpdateTlsClientAuthOptions() throws Throwable { UpdateTlsClientAuthOptions updateTlsClientAuthOptionsModel = new UpdateTlsClientAuthOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateTlsClientAuthOptionsModel.value(), "true"); + assertEquals(updateTlsClientAuthOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptionsTest.java index febf5457f..7d0a0770a 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateTrueClientIpOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateTrueClientIpOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateTrueClientIpOptionsTest { @Test public void testUpdateTrueClientIpOptions() throws Throwable { UpdateTrueClientIpOptions updateTrueClientIpOptionsModel = new UpdateTrueClientIpOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateTrueClientIpOptionsModel.value(), "true"); + assertEquals(updateTrueClientIpOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptionsTest.java index 10a72cc4c..b5cacc38d 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebApplicationFirewallOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateWebApplicationFirewallOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateWebApplicationFirewallOptionsTest { @Test public void testUpdateWebApplicationFirewallOptions() throws Throwable { UpdateWebApplicationFirewallOptions updateWebApplicationFirewallOptionsModel = new UpdateWebApplicationFirewallOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateWebApplicationFirewallOptionsModel.value(), "true"); + assertEquals(updateWebApplicationFirewallOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptionsTest.java index 77fc7926d..6106a1cab 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateWebSocketsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateWebSocketsOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -32,8 +32,8 @@ public class UpdateWebSocketsOptionsTest { @Test public void testUpdateWebSocketsOptions() throws Throwable { UpdateWebSocketsOptions updateWebSocketsOptionsModel = new UpdateWebSocketsOptions.Builder() - .value("true") + .value("on") .build(); - assertEquals(updateWebSocketsOptionsModel.value(), "true"); + assertEquals(updateWebSocketsOptionsModel.value(), "on"); } } \ No newline at end of file diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptionsTest.java index 64254ff27..085bf14ba 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneCnameFlatteningOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateZoneCnameFlatteningOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptionsTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptionsTest.java index 152ee6aa4..df7900f51 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptionsTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/UpdateZoneDnssecOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.UpdateZoneDnssecOptions; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResultTest.java index 1d694d321..e4d6bd2bd 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.WafRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespTest.java index 9d1e1f8f5..5ab9da71e 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WafRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.WafResp; import com.ibm.cloud.networking.zones_settings.v1.model.WafRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResultTest.java index 9cd4697d6..c6687e73e 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.WebsocketsRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespTest.java index bfae0085e..c0783ccde 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/WebsocketsRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.WebsocketsResp; import com.ibm.cloud.networking.zones_settings.v1.model.WebsocketsRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningRespTest.java index ef341295e..cec983e5b 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesCnameFlatteningRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,11 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.zones_settings.v1.model.CnameFlatteningResponse; import com.ibm.cloud.networking.zones_settings.v1.model.ZonesCnameFlatteningResp; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResultTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResultTest.java index 705428654..2810d6fa7 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResultTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespResultTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,9 +13,9 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ZonesDnssecRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespTest.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespTest.java index fc26533ce..30689f038 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespTest.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/model/ZonesDnssecRespTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,10 +13,10 @@ package com.ibm.cloud.networking.zones_settings.v1.model; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import com.ibm.cloud.networking.zones_settings.v1.model.ZonesDnssecResp; import com.ibm.cloud.networking.zones_settings.v1.model.ZonesDnssecRespResult; import com.ibm.cloud.networking.zones_settings.v1.utils.TestUtilities; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/utils/TestUtilities.java b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/utils/TestUtilities.java index e8f37bdcc..74260c1e9 100644 --- a/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/utils/TestUtilities.java +++ b/modules/zones-settings/src/test/java/com/ibm/cloud/networking/zones_settings/v1/utils/TestUtilities.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,8 +10,10 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.zones_settings.v1.utils; +import java.util.Base64; import java.util.Map; import java.util.Set; import java.util.List; @@ -20,10 +22,10 @@ import java.util.HashMap; import java.io.InputStream; import java.io.ByteArrayInputStream; -import java.text.SimpleDateFormat; import okhttp3.mockwebserver.RecordedRequest; import okhttp3.HttpUrl; +import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.sdk.core.util.GsonSingleton; import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; @@ -115,15 +117,15 @@ public static List creatMockListFileWithMetadata() { return list; } - public static byte[] createMockByteArray(String bytes) { - return bytes.getBytes(); + public static byte[] createMockByteArray(String encodedString) throws Exception { + return Base64.getDecoder().decode(encodedString); } public static Date createMockDate(String date) throws Exception { - return new SimpleDateFormat("yyyy-MM-dd").parse(date); + return DateUtils.parseAsDate(date); } public static Date createMockDateTime(String date) throws Exception { - return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse(date); + return DateUtils.parseAsDateTime(date); } } \ No newline at end of file