diff --git a/.apigentools-info b/.apigentools-info index 4aec3e22adb..54f79c1e70d 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.5", - "regenerated": "2023-07-18 13:52:25.283556", - "spec_repo_commit": "cbddd387" + "regenerated": "2023-07-18 19:28:49.826183", + "spec_repo_commit": "0259ae38" }, "v2": { "apigentools_version": "1.6.5", - "regenerated": "2023-07-18 13:52:25.298279", - "spec_repo_commit": "cbddd387" + "regenerated": "2023-07-18 19:28:49.842532", + "spec_repo_commit": "0259ae38" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index d1dafe45a48..935d986468b 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4049,6 +4049,22 @@ components: type: string type: array type: object + IPPrefixesRemoteConfiguration: + description: Available prefix information for the Remote Configuration endpoints. + properties: + prefixes_ipv4: + description: List of IPv4 prefixes. + items: + description: IPv4 prefix + type: string + type: array + prefixes_ipv6: + description: List of IPv6 prefixes. + items: + description: IPv6 prefix + type: string + type: array + type: object IPPrefixesSynthetics: description: Available prefix information for the Synthetics endpoints. properties: @@ -4135,6 +4151,8 @@ components: $ref: '#/components/schemas/IPPrefixesOrchestrator' process: $ref: '#/components/schemas/IPPrefixesProcess' + remote-configuration: + $ref: '#/components/schemas/IPPrefixesRemoteConfiguration' synthetics: $ref: '#/components/schemas/IPPrefixesSynthetics' synthetics-private-locations: diff --git a/src/main/java/com/datadog/api/client/v1/model/IPPrefixesRemoteConfiguration.java b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesRemoteConfiguration.java new file mode 100644 index 00000000000..29398560dff --- /dev/null +++ b/src/main/java/com/datadog/api/client/v1/model/IPPrefixesRemoteConfiguration.java @@ -0,0 +1,183 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v1.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** Available prefix information for the Remote Configuration endpoints. */ +@JsonPropertyOrder({ + IPPrefixesRemoteConfiguration.JSON_PROPERTY_PREFIXES_IPV4, + IPPrefixesRemoteConfiguration.JSON_PROPERTY_PREFIXES_IPV6 +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class IPPrefixesRemoteConfiguration { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_PREFIXES_IPV4 = "prefixes_ipv4"; + private List prefixesIpv4 = null; + + public static final String JSON_PROPERTY_PREFIXES_IPV6 = "prefixes_ipv6"; + private List prefixesIpv6 = null; + + public IPPrefixesRemoteConfiguration prefixesIpv4(List prefixesIpv4) { + this.prefixesIpv4 = prefixesIpv4; + return this; + } + + public IPPrefixesRemoteConfiguration addPrefixesIpv4Item(String prefixesIpv4Item) { + if (this.prefixesIpv4 == null) { + this.prefixesIpv4 = new ArrayList<>(); + } + this.prefixesIpv4.add(prefixesIpv4Item); + return this; + } + + /** + * List of IPv4 prefixes. + * + * @return prefixesIpv4 + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREFIXES_IPV4) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixesIpv4() { + return prefixesIpv4; + } + + public void setPrefixesIpv4(List prefixesIpv4) { + this.prefixesIpv4 = prefixesIpv4; + } + + public IPPrefixesRemoteConfiguration prefixesIpv6(List prefixesIpv6) { + this.prefixesIpv6 = prefixesIpv6; + return this; + } + + public IPPrefixesRemoteConfiguration addPrefixesIpv6Item(String prefixesIpv6Item) { + if (this.prefixesIpv6 == null) { + this.prefixesIpv6 = new ArrayList<>(); + } + this.prefixesIpv6.add(prefixesIpv6Item); + return this; + } + + /** + * List of IPv6 prefixes. + * + * @return prefixesIpv6 + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREFIXES_IPV6) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixesIpv6() { + return prefixesIpv6; + } + + public void setPrefixesIpv6(List prefixesIpv6) { + this.prefixesIpv6 = prefixesIpv6; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IPPrefixesRemoteConfiguration + */ + @JsonAnySetter + public IPPrefixesRemoteConfiguration putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this IPPrefixesRemoteConfiguration object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IPPrefixesRemoteConfiguration ipPrefixesRemoteConfiguration = (IPPrefixesRemoteConfiguration) o; + return Objects.equals(this.prefixesIpv4, ipPrefixesRemoteConfiguration.prefixesIpv4) + && Objects.equals(this.prefixesIpv6, ipPrefixesRemoteConfiguration.prefixesIpv6) + && Objects.equals( + this.additionalProperties, ipPrefixesRemoteConfiguration.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(prefixesIpv4, prefixesIpv6, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IPPrefixesRemoteConfiguration {\n"); + sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n"); + sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v1/model/IPRanges.java b/src/main/java/com/datadog/api/client/v1/model/IPRanges.java index 8eb3a354342..2af7d95b86e 100644 --- a/src/main/java/com/datadog/api/client/v1/model/IPRanges.java +++ b/src/main/java/com/datadog/api/client/v1/model/IPRanges.java @@ -25,6 +25,7 @@ IPRanges.JSON_PROPERTY_MODIFIED, IPRanges.JSON_PROPERTY_ORCHESTRATOR, IPRanges.JSON_PROPERTY_PROCESS, + IPRanges.JSON_PROPERTY_REMOTE_CONFIGURATION, IPRanges.JSON_PROPERTY_SYNTHETICS, IPRanges.JSON_PROPERTY_SYNTHETICS_PRIVATE_LOCATIONS, IPRanges.JSON_PROPERTY_VERSION, @@ -55,6 +56,9 @@ public class IPRanges { public static final String JSON_PROPERTY_PROCESS = "process"; private IPPrefixesProcess process; + public static final String JSON_PROPERTY_REMOTE_CONFIGURATION = "remote-configuration"; + private IPPrefixesRemoteConfiguration remoteConfiguration; + public static final String JSON_PROPERTY_SYNTHETICS = "synthetics"; private IPPrefixesSynthetics synthetics; @@ -221,6 +225,28 @@ public void setProcess(IPPrefixesProcess process) { this.process = process; } + public IPRanges remoteConfiguration(IPPrefixesRemoteConfiguration remoteConfiguration) { + this.remoteConfiguration = remoteConfiguration; + this.unparsed |= remoteConfiguration.unparsed; + return this; + } + + /** + * Available prefix information for the Remote Configuration endpoints. + * + * @return remoteConfiguration + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REMOTE_CONFIGURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public IPPrefixesRemoteConfiguration getRemoteConfiguration() { + return remoteConfiguration; + } + + public void setRemoteConfiguration(IPPrefixesRemoteConfiguration remoteConfiguration) { + this.remoteConfiguration = remoteConfiguration; + } + public IPRanges synthetics(IPPrefixesSynthetics synthetics) { this.synthetics = synthetics; this.unparsed |= synthetics.unparsed; @@ -373,6 +399,7 @@ public boolean equals(Object o) { && Objects.equals(this.modified, ipRanges.modified) && Objects.equals(this.orchestrator, ipRanges.orchestrator) && Objects.equals(this.process, ipRanges.process) + && Objects.equals(this.remoteConfiguration, ipRanges.remoteConfiguration) && Objects.equals(this.synthetics, ipRanges.synthetics) && Objects.equals(this.syntheticsPrivateLocations, ipRanges.syntheticsPrivateLocations) && Objects.equals(this.version, ipRanges.version) @@ -390,6 +417,7 @@ public int hashCode() { modified, orchestrator, process, + remoteConfiguration, synthetics, syntheticsPrivateLocations, version, @@ -408,6 +436,9 @@ public String toString() { sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" orchestrator: ").append(toIndentedString(orchestrator)).append("\n"); sb.append(" process: ").append(toIndentedString(process)).append("\n"); + sb.append(" remoteConfiguration: ") + .append(toIndentedString(remoteConfiguration)) + .append("\n"); sb.append(" synthetics: ").append(toIndentedString(synthetics)).append("\n"); sb.append(" syntheticsPrivateLocations: ") .append(toIndentedString(syntheticsPrivateLocations))