Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -33,6 +34,14 @@ public class ConfluentAccountResourceAttributes {
public static final String JSON_PROPERTY_TAGS = "tags";
private List<String> 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;
Expand Down Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -29,6 +30,14 @@ public class ConfluentResourceRequestAttributes {
public static final String JSON_PROPERTY_TAGS = "tags";
private List<String> 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;
Expand All @@ -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;
}
Expand Down