Skip to content

Commit c0f83d7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f03929e of spec repo
1 parent ff0feb4 commit c0f83d7

File tree

49 files changed

+803
-209
lines changed

Some content is hidden

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

49 files changed

+803
-209
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106117,7 +106117,7 @@ paths:
106117106117
permissions:
106118106118
- status_pages_settings_read
106119106119
post:
106120-
description: Creates a new status page.
106120+
description: "Creates a new status page. **Note**: Publishing a status page on creation via the `enabled` property will be deprecated. Use the dedicated [publish](https://docs.datadoghq.com/api/latest/status-pages/#publish-status-page) status page endpoint after creation instead."
106121106121
operationId: CreateStatusPage
106122106122
parameters:
106123106123
- description: "Comma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user."
@@ -106332,7 +106332,7 @@ paths:
106332106332
permissions:
106333106333
- status_pages_settings_read
106334106334
patch:
106335-
description: Updates an existing status page's attributes.
106335+
description: "Updates an existing status page's attributes. **Note**: Publishing and unpublishing via the `enabled` property will be deprecated on this endpoint. Use the dedicated [publish](https://docs.datadoghq.com/api/latest/status-pages/#publish-status-page) and [unpublish](https://docs.datadoghq.com/api/latest/status-pages/#unpublish-status-page) status page endpoints instead."
106336106336
operationId: UpdateStatusPage
106337106337
parameters:
106338106338
- description: Whether to delete existing subscribers when updating a status page's type.
@@ -106931,6 +106931,66 @@ paths:
106931106931
operator: AND
106932106932
permissions:
106933106933
- status_pages_incident_write
106934+
/api/v2/statuspages/{page_id}/publish:
106935+
post:
106936+
description: Publishes a status page. For pages of type `public`, makes the status page available on the public internet and requires the `status_pages_public_page_publish` permission. For pages of type `internal`, makes the status page available under the `/view` route within the Datadog organization and requires the `status_pages_internal_page_publish` permission. The `status_pages_settings_write` permission is temporarily honored as we migrate publishing functionality from the update status page endpoint to the publish status page endpoint.
106937+
operationId: PublishStatusPage
106938+
parameters:
106939+
- description: The ID of the status page.
106940+
in: path
106941+
name: page_id
106942+
required: true
106943+
schema:
106944+
format: uuid
106945+
type: string
106946+
responses:
106947+
"204":
106948+
description: No Content
106949+
"429":
106950+
$ref: "#/components/responses/TooManyRequestsResponse"
106951+
security:
106952+
- apiKeyAuth: []
106953+
appKeyAuth: []
106954+
- AuthZ: []
106955+
summary: Publish status page
106956+
tags:
106957+
- Status Pages
106958+
x-permission:
106959+
operator: OR
106960+
permissions:
106961+
- status_pages_settings_write
106962+
- status_pages_public_page_publish
106963+
- status_pages_internal_page_publish
106964+
/api/v2/statuspages/{page_id}/unpublish:
106965+
post:
106966+
description: Unpublishes a status page. For pages of type `public`, removes the status page from the public internet and requires the `status_pages_public_page_publish` permission. For pages of type `internal`, removes the `/view` route from the Datadog organization and requires the `status_pages_internal_page_publish` permission. The `status_pages_settings_write` permission is temporarily honored as we migrate unpublishing functionality from the update status page endpoint to the unpublish status page endpoint.
106967+
operationId: UnpublishStatusPage
106968+
parameters:
106969+
- description: The ID of the status page.
106970+
in: path
106971+
name: page_id
106972+
required: true
106973+
schema:
106974+
format: uuid
106975+
type: string
106976+
responses:
106977+
"204":
106978+
description: No Content
106979+
"429":
106980+
$ref: "#/components/responses/TooManyRequestsResponse"
106981+
security:
106982+
- apiKeyAuth: []
106983+
appKeyAuth: []
106984+
- AuthZ: []
106985+
summary: Unpublish status page
106986+
tags:
106987+
- Status Pages
106988+
x-permission:
106989+
operator: OR
106990+
permissions:
106991+
- status_pages_settings_write
106992+
- status_pages_public_page_publish
106993+
- status_pages_internal_page_publish
106934106994
/api/v2/synthetics/api-multistep/subtests/{public_id}:
106935106995
get:
106936106996
description: |-
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Publish status page returns "No Content" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.StatusPagesApi;
6+
import java.util.UUID;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
12+
13+
// there is a valid "unpublished_status_page" in the system
14+
UUID UNPUBLISHED_STATUS_PAGE_DATA_ID = null;
15+
try {
16+
UNPUBLISHED_STATUS_PAGE_DATA_ID =
17+
UUID.fromString(System.getenv("UNPUBLISHED_STATUS_PAGE_DATA_ID"));
18+
} catch (IllegalArgumentException e) {
19+
System.err.println("Error parsing UUID: " + e.getMessage());
20+
}
21+
22+
try {
23+
apiInstance.publishStatusPage(UNPUBLISHED_STATUS_PAGE_DATA_ID);
24+
} catch (ApiException e) {
25+
System.err.println("Exception when calling StatusPagesApi#publishStatusPage");
26+
System.err.println("Status code: " + e.getCode());
27+
System.err.println("Reason: " + e.getResponseBody());
28+
System.err.println("Response headers: " + e.getResponseHeaders());
29+
e.printStackTrace();
30+
}
31+
}
32+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Unpublish status page returns "No Content" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.StatusPagesApi;
6+
import java.util.UUID;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
12+
13+
// there is a valid "status_page" in the system
14+
UUID STATUS_PAGE_DATA_ID = null;
15+
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);
23+
} catch (ApiException e) {
24+
System.err.println("Exception when calling StatusPagesApi#unpublishStatusPage");
25+
System.err.println("Status code: " + e.getCode());
26+
System.err.println("Reason: " + e.getResponseBody());
27+
System.err.println("Response headers: " + e.getResponseHeaders());
28+
e.printStackTrace();
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)