Skip to content

Commit d48174d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit e8c83db of spec repo (#3758)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 161031f commit d48174d

52 files changed

Lines changed: 354 additions & 296 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17311,7 +17311,6 @@ components:
1731117311
type: component
1731217312
domain_prefix: status-page-us1
1731317313
email_header_image: data:image/png;base64,pQSLAw0KGgoAAAANSUhEUgAAAQ4AASJKFF
17314-
enabled: true
1731517314
favicon: data:image/png;base64,kWMRNw0KGgoAAAANSUhEUgAAAEAAAABACA
1731617315
name: Status Page US1
1731717316
subscriptions_enabled: true
@@ -17370,10 +17369,6 @@ components:
1737017369
description: Base64-encoded image data included in email notifications sent to status page subscribers.
1737117370
example: data:image/png;base64,pQSLAw0KGgoAAAANSUhEUgAAAQ4AASJKFF
1737217371
type: string
17373-
enabled:
17374-
description: Whether the status page is enabled.
17375-
example: true
17376-
type: boolean
1737717372
favicon:
1737817373
description: Base64-encoded image data displayed in the browser tab.
1737917374
example: data:image/png;base64,kWMRNw0KGgoAAAANSUhEUgAAAEAAAABACA
@@ -17394,7 +17389,6 @@ components:
1739417389
example: bars_and_uptime_percentage
1739517390
required:
1739617391
- domain_prefix
17397-
- enabled
1739817392
- name
1739917393
- type
1740017394
- visualization_type
@@ -127501,7 +127495,7 @@ paths:
127501127495
permissions:
127502127496
- status_pages_settings_read
127503127497
post:
127504-
description: "Creates a new status page. **Note**: Publishing a status page on creation via the `enabled` property will be deprecated. Use the dedicated [publish](#publish-status-page) status page endpoint after creation instead."
127498+
description: "Creates a new status page in an unpublished state. Use the dedicated [publish](#publish-status-page) status page endpoint to publish the page after creation."
127505127499
operationId: CreateStatusPage
127506127500
parameters:
127507127501
- description: "Comma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user."
@@ -127537,7 +127531,6 @@ paths:
127537127531
type: component
127538127532
domain_prefix: status-page-us1
127539127533
email_header_image: data:image/png;base64,pQSLAw0KGgoAAAANSUhEUgAAAQ4AASJKFF
127540-
enabled: true
127541127534
favicon: data:image/png;base64,kWMRNw0KGgoAAAANSUhEUgAAAEAAAABACA
127542127535
name: Status Page US1
127543127536
subscriptions_enabled: true

examples/v2/status-pages/CreateStatusPage.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public static void main(String[] args) {
3737
.name("Settings")
3838
.type(CreateComponentRequestDataAttributesType.COMPONENT)
3939
.position(1L)))
40-
.enabled(true)
4140
.type(CreateStatusPageRequestDataAttributesType.INTERNAL)
4241
.visualizationType(
4342
CreateStatusPageRequestDataAttributesVisualizationType

examples/v2/status-pages/PublishStatusPage.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1111
StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
1212

13-
// there is a valid "unpublished_status_page" in the system
14-
UUID UNPUBLISHED_STATUS_PAGE_DATA_ID = null;
13+
// there is a valid "status_page" in the system
14+
UUID STATUS_PAGE_DATA_ID = null;
1515
try {
16-
UNPUBLISHED_STATUS_PAGE_DATA_ID =
17-
UUID.fromString(System.getenv("UNPUBLISHED_STATUS_PAGE_DATA_ID"));
16+
STATUS_PAGE_DATA_ID = UUID.fromString(System.getenv("STATUS_PAGE_DATA_ID"));
1817
} catch (IllegalArgumentException e) {
1918
System.err.println("Error parsing UUID: " + e.getMessage());
2019
}
2120

2221
try {
23-
apiInstance.publishStatusPage(UNPUBLISHED_STATUS_PAGE_DATA_ID);
22+
apiInstance.publishStatusPage(STATUS_PAGE_DATA_ID);
2423
} catch (ApiException e) {
2524
System.err.println("Exception when calling StatusPagesApi#publishStatusPage");
2625
System.err.println("Status code: " + e.getCode());

examples/v2/status-pages/UnpublishStatusPage.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,8 @@ public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1111
StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
1212

13-
// there is a valid "status_page" in the system
14-
UUID STATUS_PAGE_DATA_ID = null;
1513
try {
16-
STATUS_PAGE_DATA_ID = UUID.fromString(System.getenv("STATUS_PAGE_DATA_ID"));
17-
} catch (IllegalArgumentException e) {
18-
System.err.println("Error parsing UUID: " + e.getMessage());
19-
}
20-
21-
try {
22-
apiInstance.unpublishStatusPage(STATUS_PAGE_DATA_ID);
14+
apiInstance.unpublishStatusPage(UUID.fromString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"));
2315
} catch (ApiException e) {
2416
System.err.println("Exception when calling StatusPagesApi#unpublishStatusPage");
2517
System.err.println("Status code: " + e.getCode());

src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -838,9 +838,9 @@ public CompletableFuture<StatusPage> createStatusPageAsync(
838838
}
839839

840840
/**
841-
* Creates a new status page. <strong>Note</strong>: Publishing a status page on creation via the
842-
* <code>enabled</code> property will be deprecated. Use the dedicated <a
843-
* href="#publish-status-page">publish</a> status page endpoint after creation instead.
841+
* Creates a new status page in an unpublished state. Use the dedicated <a
842+
* href="#publish-status-page">publish</a> status page endpoint to publish the page after
843+
* creation.
844844
*
845845
* @param body (required)
846846
* @param parameters Optional parameters for the request.

src/main/java/com/datadog/api/client/v2/model/CreateStatusPageRequestDataAttributes.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
CreateStatusPageRequestDataAttributes.JSON_PROPERTY_COMPONENTS,
2626
CreateStatusPageRequestDataAttributes.JSON_PROPERTY_DOMAIN_PREFIX,
2727
CreateStatusPageRequestDataAttributes.JSON_PROPERTY_EMAIL_HEADER_IMAGE,
28-
CreateStatusPageRequestDataAttributes.JSON_PROPERTY_ENABLED,
2928
CreateStatusPageRequestDataAttributes.JSON_PROPERTY_FAVICON,
3029
CreateStatusPageRequestDataAttributes.JSON_PROPERTY_NAME,
3130
CreateStatusPageRequestDataAttributes.JSON_PROPERTY_SUBSCRIPTIONS_ENABLED,
@@ -48,9 +47,6 @@ public class CreateStatusPageRequestDataAttributes {
4847
public static final String JSON_PROPERTY_EMAIL_HEADER_IMAGE = "email_header_image";
4948
private String emailHeaderImage;
5049

51-
public static final String JSON_PROPERTY_ENABLED = "enabled";
52-
private Boolean enabled;
53-
5450
public static final String JSON_PROPERTY_FAVICON = "favicon";
5551
private String favicon;
5652

@@ -71,14 +67,12 @@ public CreateStatusPageRequestDataAttributes() {}
7167
@JsonCreator
7268
public CreateStatusPageRequestDataAttributes(
7369
@JsonProperty(required = true, value = JSON_PROPERTY_DOMAIN_PREFIX) String domainPrefix,
74-
@JsonProperty(required = true, value = JSON_PROPERTY_ENABLED) Boolean enabled,
7570
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
7671
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
7772
CreateStatusPageRequestDataAttributesType type,
7873
@JsonProperty(required = true, value = JSON_PROPERTY_VISUALIZATION_TYPE)
7974
CreateStatusPageRequestDataAttributesVisualizationType visualizationType) {
8075
this.domainPrefix = domainPrefix;
81-
this.enabled = enabled;
8276
this.name = name;
8377
this.type = type;
8478
this.unparsed |= !type.isValid();
@@ -185,26 +179,6 @@ public void setEmailHeaderImage(String emailHeaderImage) {
185179
this.emailHeaderImage = emailHeaderImage;
186180
}
187181

188-
public CreateStatusPageRequestDataAttributes enabled(Boolean enabled) {
189-
this.enabled = enabled;
190-
return this;
191-
}
192-
193-
/**
194-
* Whether the status page is enabled.
195-
*
196-
* @return enabled
197-
*/
198-
@JsonProperty(JSON_PROPERTY_ENABLED)
199-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
200-
public Boolean getEnabled() {
201-
return enabled;
202-
}
203-
204-
public void setEnabled(Boolean enabled) {
205-
this.enabled = enabled;
206-
}
207-
208182
public CreateStatusPageRequestDataAttributes favicon(String favicon) {
209183
this.favicon = favicon;
210184
return this;
@@ -380,7 +354,6 @@ public boolean equals(Object o) {
380354
&& Objects.equals(this.domainPrefix, createStatusPageRequestDataAttributes.domainPrefix)
381355
&& Objects.equals(
382356
this.emailHeaderImage, createStatusPageRequestDataAttributes.emailHeaderImage)
383-
&& Objects.equals(this.enabled, createStatusPageRequestDataAttributes.enabled)
384357
&& Objects.equals(this.favicon, createStatusPageRequestDataAttributes.favicon)
385358
&& Objects.equals(this.name, createStatusPageRequestDataAttributes.name)
386359
&& Objects.equals(
@@ -399,7 +372,6 @@ public int hashCode() {
399372
components,
400373
domainPrefix,
401374
emailHeaderImage,
402-
enabled,
403375
favicon,
404376
name,
405377
subscriptionsEnabled,
@@ -416,7 +388,6 @@ public String toString() {
416388
sb.append(" components: ").append(toIndentedString(components)).append("\n");
417389
sb.append(" domainPrefix: ").append(toIndentedString(domainPrefix)).append("\n");
418390
sb.append(" emailHeaderImage: ").append(toIndentedString(emailHeaderImage)).append("\n");
419-
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
420391
sb.append(" favicon: ").append(toIndentedString(favicon)).append("\n");
421392
sb.append(" name: ").append(toIndentedString(name)).append("\n");
422393
sb.append(" subscriptionsEnabled: ")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2026-03-31T18:43:45.443Z
1+
2026-04-24T14:12:37.493Z

src/test/resources/cassettes/features/v2/Create_component_returns_Created_response.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"components\":[{\"components\":[{\"name\":\"Login\",\"position\":0,\"type\":\"component\"},{\"name\":\"Settings\",\"position\":1,\"type\":\"component\"}],\"name\":\"Application\",\"type\":\"group\"}],\"domain_prefix\":\"9dbd15ff66733c82\",\"enabled\":true,\"name\":\"A Status Page\",\"type\":\"internal\",\"visualization_type\":\"bars_and_uptime_percentage\"},\"type\":\"status_pages\"}}"
6+
"json": "{\"data\":{\"attributes\":{\"components\":[{\"components\":[{\"name\":\"Login\",\"position\":0,\"type\":\"component\"},{\"name\":\"Settings\",\"position\":1,\"type\":\"component\"}],\"name\":\"Application\",\"type\":\"group\"}],\"domain_prefix\":\"f456820b7958024f\",\"name\":\"A Status Page\",\"type\":\"internal\",\"visualization_type\":\"bars_and_uptime_percentage\"},\"type\":\"status_pages\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"daae96b1-2114-4979-8668-2f782fe4a82b\",\"type\":\"status_pages\",\"attributes\":{\"company_logo\":null,\"components\":[{\"id\":\"0827c72a-5886-4850-b9a0-3c0b62fd5cbd\",\"name\":\"Application\",\"type\":\"group\",\"position\":0,\"components\":[{\"id\":\"2944ac68-cc1f-43bc-9950-a81912daf613\",\"name\":\"Login\",\"type\":\"component\",\"status\":\"operational\",\"position\":0},{\"id\":\"7374a8e5-7d66-43be-83f0-4337a739bdfb\",\"name\":\"Settings\",\"type\":\"component\",\"status\":\"operational\",\"position\":1}]}],\"created_at\":\"2026-03-31T18:43:45.548049Z\",\"custom_domain\":null,\"custom_domain_enabled\":false,\"domain_prefix\":\"9dbd15ff66733c82\",\"email_header_image\":null,\"enabled\":true,\"favicon\":null,\"modified_at\":\"2026-03-31T18:43:45.548049Z\",\"name\":\"A Status Page\",\"page_url\":\"https://frog.datadoghq.com/status-pages/daae96b1-2114-4979-8668-2f782fe4a82b/view\",\"subscriptions_enabled\":false,\"type\":\"internal\",\"visualization_type\":\"bars_and_uptime_percentage\"},\"relationships\":{\"created_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"last_modified_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}}}}}",
15+
"body": "{\"data\":{\"id\":\"b02801ff-949d-467e-967d-5943c8f1c7af\",\"type\":\"status_pages\",\"attributes\":{\"company_logo\":null,\"components\":[{\"id\":\"7f96e5c3-f033-4640-bf8a-7018e134c8b5\",\"name\":\"Application\",\"type\":\"group\",\"position\":0,\"components\":[{\"id\":\"feefa8d8-7485-4bfb-82a6-86268c1d68b3\",\"name\":\"Login\",\"type\":\"component\",\"status\":\"operational\",\"position\":0},{\"id\":\"b2f95a96-3261-40fb-bb5a-f95203741608\",\"name\":\"Settings\",\"type\":\"component\",\"status\":\"operational\",\"position\":1}]}],\"created_at\":\"2026-04-24T14:12:37.623742Z\",\"custom_domain\":null,\"custom_domain_enabled\":false,\"domain_prefix\":\"f456820b7958024f\",\"email_header_image\":null,\"enabled\":false,\"favicon\":null,\"modified_at\":\"2026-04-24T14:12:37.623742Z\",\"name\":\"A Status Page\",\"page_url\":\"https://frog.datadoghq.com/status-pages/b02801ff-949d-467e-967d-5943c8f1c7af/view\",\"subscriptions_enabled\":false,\"type\":\"internal\",\"visualization_type\":\"bars_and_uptime_percentage\"},\"relationships\":{\"created_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"last_modified_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}}}}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -27,7 +27,7 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "1ab5246f-885f-abfd-af11-742e3e49c704"
30+
"id": "2169e74a-23e0-1eb0-840a-99d5b23da99d"
3131
},
3232
{
3333
"httpRequest": {
@@ -37,12 +37,12 @@
3737
},
3838
"headers": {},
3939
"method": "POST",
40-
"path": "/api/v2/statuspages/daae96b1-2114-4979-8668-2f782fe4a82b/components",
40+
"path": "/api/v2/statuspages/b02801ff-949d-467e-967d-5943c8f1c7af/components",
4141
"keepAlive": false,
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"data\":{\"id\":\"dc1f6182-86a0-4f18-a4de-78f99ff1455f\",\"type\":\"components\",\"attributes\":{\"created_at\":\"2026-03-31T18:43:46.083871Z\",\"modified_at\":\"2026-03-31T18:43:46.083871Z\",\"name\":\"Logs\",\"position\":0,\"status\":\"operational\",\"type\":\"component\"},\"relationships\":{\"created_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"group\":{\"data\":null},\"last_modified_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"status_page\":{\"data\":{\"id\":\"daae96b1-2114-4979-8668-2f782fe4a82b\",\"type\":\"status_pages\"}}}}}",
45+
"body": "{\"data\":{\"id\":\"ef964967-c6b6-465a-a260-0468b697036c\",\"type\":\"components\",\"attributes\":{\"created_at\":\"2026-04-24T14:12:38.188993Z\",\"modified_at\":\"2026-04-24T14:12:38.188993Z\",\"name\":\"Logs\",\"position\":0,\"status\":\"operational\",\"type\":\"component\"},\"relationships\":{\"created_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"group\":{\"data\":null},\"last_modified_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"status_page\":{\"data\":{\"id\":\"b02801ff-949d-467e-967d-5943c8f1c7af\",\"type\":\"status_pages\"}}}}}",
4646
"headers": {
4747
"Content-Type": [
4848
"application/vnd.api+json"
@@ -57,13 +57,13 @@
5757
"timeToLive": {
5858
"unlimited": true
5959
},
60-
"id": "502c3e71-00a9-f1d1-dd96-1f393aeea16f"
60+
"id": "b6571c89-cd17-a317-2cbb-78a420729004"
6161
},
6262
{
6363
"httpRequest": {
6464
"headers": {},
6565
"method": "DELETE",
66-
"path": "/api/v2/statuspages/daae96b1-2114-4979-8668-2f782fe4a82b/components/dc1f6182-86a0-4f18-a4de-78f99ff1455f",
66+
"path": "/api/v2/statuspages/b02801ff-949d-467e-967d-5943c8f1c7af/components/ef964967-c6b6-465a-a260-0468b697036c",
6767
"keepAlive": false,
6868
"secure": true
6969
},
@@ -78,13 +78,13 @@
7878
"timeToLive": {
7979
"unlimited": true
8080
},
81-
"id": "e52b7269-2876-e128-7497-ad731a8df83d"
81+
"id": "1693c83a-278f-9bc5-245f-9d74d24d73c6"
8282
},
8383
{
8484
"httpRequest": {
8585
"headers": {},
8686
"method": "DELETE",
87-
"path": "/api/v2/statuspages/daae96b1-2114-4979-8668-2f782fe4a82b",
87+
"path": "/api/v2/statuspages/b02801ff-949d-467e-967d-5943c8f1c7af",
8888
"keepAlive": false,
8989
"secure": true
9090
},
@@ -99,6 +99,6 @@
9999
"timeToLive": {
100100
"unlimited": true
101101
},
102-
"id": "4c986000-9294-c514-29ae-3f8dca5862b2"
102+
"id": "02788f1b-1883-029b-21af-5df1bba4dff2"
103103
}
104104
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2026-03-31T18:43:46.834Z
1+
2026-04-24T14:12:38.944Z

0 commit comments

Comments
 (0)