Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
559 changes: 558 additions & 1 deletion .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-06-10T18:49:58.475Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-06-10T18:49:59.498Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-06-10T18:49:59.826Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-06-10T18:50:01.064Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-06-10T18:50:01.393Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-06-10T18:50:02.747Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-06-10T18:50:03.118Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions examples/v2/forms/CloneForm.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Clone a form returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.clone_form".to_sym] = true
end
api_instance = DatadogAPIClient::V2::FormsAPI.new

body = DatadogAPIClient::V2::CloneFormRequest.new({
data: DatadogAPIClient::V2::CloneFormData.new({
attributes: DatadogAPIClient::V2::CloneFormDataAttributes.new({
name: "Copy of My Form",
}),
type: DatadogAPIClient::V2::FormType::FORMS,
}),
})
p api_instance.clone_form("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", body)
20 changes: 20 additions & 0 deletions examples/v2/forms/PublishForm.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Publish a form version returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.publish_form".to_sym] = true
end
api_instance = DatadogAPIClient::V2::FormsAPI.new

# there is a valid "form" in the system
FORM_DATA_ID = ENV["FORM_DATA_ID"]

body = DatadogAPIClient::V2::PublishFormRequest.new({
data: DatadogAPIClient::V2::PublishFormData.new({
attributes: DatadogAPIClient::V2::PublishFormDataAttributes.new({
version: 1,
}),
type: DatadogAPIClient::V2::FormPublicationType::FORM_PUBLICATIONS,
}),
})
p api_instance.publish_form(FORM_DATA_ID, body)
Loading
Loading