Skip to content

Commit 3a8f3fb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 90b6b6a of spec repo
1 parent acc396a commit 3a8f3fb

File tree

44 files changed

+1673
-1102
lines changed

Some content is hidden

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

44 files changed

+1673
-1102
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 338 additions & 307 deletions
Large diffs are not rendered by default.

cassettes/features/v2/incidents/Create-an-incident-attachment-returns-OK-response.frozen

Lines changed: 0 additions & 1 deletion
This file was deleted.

cassettes/features/v2/incidents/Create-an-incident-attachment-returns-OK-response.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

cassettes/features/v2/incidents/Get-incident-attachments-returns-OK-response.frozen

Lines changed: 0 additions & 1 deletion
This file was deleted.

cassettes/features/v2/incidents/Get-incident-attachments-returns-OK-response.yml

Lines changed: 0 additions & 91 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Create incident attachment returns "Created" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.create_incident_attachment".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8+
9+
body = DatadogAPIClient::V2::CreateAttachmentRequest.new({
10+
data: DatadogAPIClient::V2::CreateAttachmentRequestData.new({
11+
attributes: DatadogAPIClient::V2::CreateAttachmentRequestDataAttributes.new({
12+
attachment: DatadogAPIClient::V2::CreateAttachmentRequestDataAttributesAttachment.new({
13+
document_url: "https://app.datadoghq.com/notebook/123/Postmortem-IR-123",
14+
title: "Postmortem-IR-123",
15+
}),
16+
attachment_type: DatadogAPIClient::V2::AttachmentDataAttributesAttachmentType::POSTMORTEM,
17+
}),
18+
id: "00000000-0000-0000-0000-000000000000",
19+
type: DatadogAPIClient::V2::IncidentAttachmentType::INCIDENT_ATTACHMENTS,
20+
}),
21+
})
22+
p api_instance.create_incident_attachment("incident_id", body)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Delete incident attachment returns "No Content" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.delete_incident_attachment".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8+
api_instance.delete_incident_attachment("incident_id", "00000000-0000-0000-0000-000000000002")

examples/v2/incidents/ListIncidentAttachments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get a list of attachments returns "OK" response
1+
# List incident attachments returns "OK" response
22

33
require "datadog_api_client"
44
DatadogAPIClient.configure do |config|

examples/v2/incidents/ListIncidentAttachments_2457735435.rb

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Update incident attachment returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.update_incident_attachment".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::IncidentsAPI.new
8+
9+
body = DatadogAPIClient::V2::PatchAttachmentRequest.new({
10+
data: DatadogAPIClient::V2::PatchAttachmentRequestData.new({
11+
attributes: DatadogAPIClient::V2::PatchAttachmentRequestDataAttributes.new({
12+
attachment: DatadogAPIClient::V2::PatchAttachmentRequestDataAttributesAttachment.new({
13+
document_url: "https://app.datadoghq.com/notebook/124/Postmortem-IR-124",
14+
title: "Postmortem-IR-124",
15+
}),
16+
}),
17+
type: DatadogAPIClient::V2::IncidentAttachmentType::INCIDENT_ATTACHMENTS,
18+
}),
19+
})
20+
p api_instance.update_incident_attachment("incident_id", "00000000-0000-0000-0000-000000000002", body)

0 commit comments

Comments
 (0)