diff --git a/.apigentools-info b/.apigentools-info index 379d3ccb768..b02705659b6 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-20 19:51:49.507932", - "spec_repo_commit": "51272749" + "regenerated": "2025-06-23 07:59:26.325614", + "spec_repo_commit": "74866a53" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-20 19:51:49.524444", - "spec_repo_commit": "51272749" + "regenerated": "2025-06-23 07:59:26.342135", + "spec_repo_commit": "74866a53" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 12295323353..b83ef47e92d 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -14785,9 +14785,6 @@ components: description: Username to use for the basic authentication. example: my_username type: string - required: - - password - - username type: object SyntheticsBasicAuthWebType: default: web diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java index f38d7b964e9..722cefef159 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsBasicAuthWeb.java @@ -8,7 +8,6 @@ import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -36,16 +35,6 @@ public class SyntheticsBasicAuthWeb { public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public SyntheticsBasicAuthWeb() {} - - @JsonCreator - public SyntheticsBasicAuthWeb( - @JsonProperty(required = true, value = JSON_PROPERTY_PASSWORD) String password, - @JsonProperty(required = true, value = JSON_PROPERTY_USERNAME) String username) { - this.password = password; - this.username = username; - } - public SyntheticsBasicAuthWeb password(String password) { this.password = password; return this; @@ -56,8 +45,9 @@ public SyntheticsBasicAuthWeb password(String password) { * * @return password */ + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; } @@ -101,8 +91,9 @@ public SyntheticsBasicAuthWeb username(String username) { * * @return username */ + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; }