diff --git a/.apigentools-info b/.apigentools-info index 886e22146e1..d3ea4549fa0 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-07 17:48:56.145044", - "spec_repo_commit": "e6f88173" + "regenerated": "2023-04-10 11:13:59.785215", + "spec_repo_commit": "04eeb6ee" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-07 17:48:56.163302", - "spec_repo_commit": "e6f88173" + "regenerated": "2023-04-10 11:13:59.803682", + "spec_repo_commit": "04eeb6ee" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6fd306effcc..fb5a70c9a75 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -2405,6 +2405,8 @@ components: items: type: string type: array + required: + - resource_type type: object ConfluentAccountResponse: description: The expected response schema when getting a Confluent account. @@ -2539,6 +2541,8 @@ components: items: type: string type: array + required: + - resource_type type: object ConfluentResourceRequestData: description: JSON:API request for updating a Confluent resource. diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java index c000156356a..6aaca8c3eeb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentAccountResourceAttributes.java @@ -6,6 +6,7 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -33,6 +34,14 @@ public class ConfluentAccountResourceAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private List tags = null; + public ConfluentAccountResourceAttributes() {} + + @JsonCreator + public ConfluentAccountResourceAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_RESOURCE_TYPE) String resourceType) { + this.resourceType = resourceType; + } + public ConfluentAccountResourceAttributes id(String id) { this.id = id; return this; @@ -65,9 +74,8 @@ public ConfluentAccountResourceAttributes resourceType(String resourceType) { * * @return resourceType */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResourceType() { return resourceType; } diff --git a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java index 9890f6ce65c..49ea17b31d1 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/ConfluentResourceRequestAttributes.java @@ -6,6 +6,7 @@ package com.datadog.api.client.v2.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -29,6 +30,14 @@ public class ConfluentResourceRequestAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private List tags = null; + public ConfluentResourceRequestAttributes() {} + + @JsonCreator + public ConfluentResourceRequestAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_RESOURCE_TYPE) String resourceType) { + this.resourceType = resourceType; + } + public ConfluentResourceRequestAttributes resourceType(String resourceType) { this.resourceType = resourceType; return this; @@ -40,9 +49,8 @@ public ConfluentResourceRequestAttributes resourceType(String resourceType) { * * @return resourceType */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResourceType() { return resourceType; }