From 097e48943626024d9ecf65096ba70b66fc163ed8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 28 Jan 2026 16:09:25 +0000 Subject: [PATCH] Regenerate client from commit a3c2cdc of spec repo --- .generator/schemas/v2/openapi.yaml | 32 +++++++++++++------ .../v2/model/CreateComponentRequestData.java | 7 ++-- .../model/CreateDegradationRequestData.java | 7 ++-- .../v2/model/CreateStatusPageRequestData.java | 7 ++-- .../v2/model/PatchComponentRequestData.java | 12 ++++--- .../v2/model/PatchDegradationRequestData.java | 12 ++++--- .../v2/model/PatchStatusPageRequestData.java | 12 ++++--- 7 files changed, 61 insertions(+), 28 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5423824d0a6..147e01bf6b9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -13283,6 +13283,7 @@ components: type: $ref: '#/components/schemas/StatusPagesComponentGroupType' required: + - attributes - type type: object CreateComponentRequestDataAttributes: @@ -13367,7 +13368,7 @@ components: properties: id: description: The ID of the group. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -13569,6 +13570,7 @@ components: type: $ref: '#/components/schemas/PatchDegradationRequestDataType' required: + - attributes - type type: object CreateDegradationRequestDataAttributes: @@ -13604,7 +13606,7 @@ components: properties: id: description: The ID of the component. Must be a component of type `component`. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -14327,6 +14329,7 @@ components: type: $ref: '#/components/schemas/StatusPageDataType' required: + - attributes - type type: object CreateStatusPageRequestDataAttributes: @@ -18391,7 +18394,7 @@ components: properties: id: description: The ID of the component. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -18436,7 +18439,7 @@ components: properties: id: description: Identifier of the component affected at the time of the update. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -18512,7 +18515,7 @@ components: properties: id: description: The ID of the status page. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -43661,11 +43664,14 @@ components: $ref: '#/components/schemas/PatchComponentRequestDataAttributes' id: description: The ID of the component. + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: $ref: '#/components/schemas/StatusPagesComponentGroupType' required: + - attributes + - id - type type: object PatchComponentRequestDataAttributes: @@ -43704,11 +43710,14 @@ components: $ref: '#/components/schemas/PatchDegradationRequestDataAttributes' id: description: The ID of the degradation. + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: $ref: '#/components/schemas/PatchDegradationRequestDataType' required: + - attributes + - id - type type: object PatchDegradationRequestDataAttributes: @@ -43739,7 +43748,7 @@ components: properties: id: description: The ID of the component. Must be a component of type `component`. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -43844,11 +43853,14 @@ components: $ref: '#/components/schemas/PatchStatusPageRequestDataAttributes' id: description: The ID of the status page. + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: $ref: '#/components/schemas/StatusPageDataType' required: + - attributes + - id - type type: object PatchStatusPageRequestDataAttributes: @@ -58776,7 +58788,7 @@ components: properties: id: description: The ID of the group the component belongs to. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -58815,7 +58827,7 @@ components: properties: id: description: The ID of the status page the component belongs to. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -58957,7 +58969,7 @@ components: nullable: true properties: id: - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -58999,7 +59011,7 @@ components: properties: id: description: The ID of the status page. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateComponentRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CreateComponentRequestData.java index e62c738b535..37e4587ebcb 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateComponentRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateComponentRequestData.java @@ -40,8 +40,12 @@ public CreateComponentRequestData() {} @JsonCreator public CreateComponentRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + CreateComponentRequestDataAttributes attributes, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) StatusPagesComponentGroupType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; this.type = type; this.unparsed |= !type.isValid(); } @@ -57,9 +61,8 @@ public CreateComponentRequestData attributes(CreateComponentRequestDataAttribute * * @return attributes */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public CreateComponentRequestDataAttributes getAttributes() { return attributes; } diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateDegradationRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CreateDegradationRequestData.java index 329a0e166c4..91e2069fd6a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateDegradationRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateDegradationRequestData.java @@ -36,8 +36,12 @@ public CreateDegradationRequestData() {} @JsonCreator public CreateDegradationRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + CreateDegradationRequestDataAttributes attributes, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) PatchDegradationRequestDataType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; this.type = type; this.unparsed |= !type.isValid(); } @@ -54,9 +58,8 @@ public CreateDegradationRequestData attributes( * * @return attributes */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public CreateDegradationRequestDataAttributes getAttributes() { return attributes; } diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateStatusPageRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CreateStatusPageRequestData.java index 380cc7b7286..8530d85eb9a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateStatusPageRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateStatusPageRequestData.java @@ -36,7 +36,11 @@ public CreateStatusPageRequestData() {} @JsonCreator public CreateStatusPageRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + CreateStatusPageRequestDataAttributes attributes, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) StatusPageDataType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; this.type = type; this.unparsed |= !type.isValid(); } @@ -52,9 +56,8 @@ public CreateStatusPageRequestData attributes(CreateStatusPageRequestDataAttribu * * @return attributes */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public CreateStatusPageRequestDataAttributes getAttributes() { return attributes; } diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchComponentRequestData.java b/src/main/java/com/datadog/api/client/v2/model/PatchComponentRequestData.java index 8c6355cfbcb..04457690f85 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchComponentRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchComponentRequestData.java @@ -41,8 +41,14 @@ public PatchComponentRequestData() {} @JsonCreator public PatchComponentRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + PatchComponentRequestDataAttributes attributes, + @JsonProperty(required = true, value = JSON_PROPERTY_ID) UUID id, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) StatusPagesComponentGroupType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + this.id = id; this.type = type; this.unparsed |= !type.isValid(); } @@ -58,9 +64,8 @@ public PatchComponentRequestData attributes(PatchComponentRequestDataAttributes * * @return attributes */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public PatchComponentRequestDataAttributes getAttributes() { return attributes; } @@ -79,9 +84,8 @@ public PatchComponentRequestData id(UUID id) { * * @return id */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public UUID getId() { return id; } diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchDegradationRequestData.java b/src/main/java/com/datadog/api/client/v2/model/PatchDegradationRequestData.java index ab937429350..62804fe9fe9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchDegradationRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchDegradationRequestData.java @@ -41,8 +41,14 @@ public PatchDegradationRequestData() {} @JsonCreator public PatchDegradationRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + PatchDegradationRequestDataAttributes attributes, + @JsonProperty(required = true, value = JSON_PROPERTY_ID) UUID id, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) PatchDegradationRequestDataType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + this.id = id; this.type = type; this.unparsed |= !type.isValid(); } @@ -58,9 +64,8 @@ public PatchDegradationRequestData attributes(PatchDegradationRequestDataAttribu * * @return attributes */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public PatchDegradationRequestDataAttributes getAttributes() { return attributes; } @@ -79,9 +84,8 @@ public PatchDegradationRequestData id(UUID id) { * * @return id */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public UUID getId() { return id; } diff --git a/src/main/java/com/datadog/api/client/v2/model/PatchStatusPageRequestData.java b/src/main/java/com/datadog/api/client/v2/model/PatchStatusPageRequestData.java index 8433be85e92..80699a0a8a5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/PatchStatusPageRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/PatchStatusPageRequestData.java @@ -41,7 +41,13 @@ public PatchStatusPageRequestData() {} @JsonCreator public PatchStatusPageRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + PatchStatusPageRequestDataAttributes attributes, + @JsonProperty(required = true, value = JSON_PROPERTY_ID) UUID id, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) StatusPageDataType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + this.id = id; this.type = type; this.unparsed |= !type.isValid(); } @@ -57,9 +63,8 @@ public PatchStatusPageRequestData attributes(PatchStatusPageRequestDataAttribute * * @return attributes */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public PatchStatusPageRequestDataAttributes getAttributes() { return attributes; } @@ -78,9 +83,8 @@ public PatchStatusPageRequestData id(UUID id) { * * @return id */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public UUID getId() { return id; }