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
412 changes: 408 additions & 4 deletions .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-02-10T19:17:08.664Z

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-02-10T19:17:09.317Z

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-02-10T19:17:10.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-02-10T19:17:11.045Z

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-02-10T19:17:12.022Z

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-02-10T19:17:12.337Z

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

15 changes: 15 additions & 0 deletions examples/v2/google-chat-integration/CreateOrganizationHandle.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Create organization handle returns "CREATED" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new

body = DatadogAPIClient::V2::GoogleChatCreateOrganizationHandleRequest.new({
data: DatadogAPIClient::V2::GoogleChatCreateOrganizationHandleRequestData.new({
attributes: DatadogAPIClient::V2::GoogleChatCreateOrganizationHandleRequestAttributes.new({
name: "Example-Google-Chat-Integration",
space_resource_name: "spaces/AAQA-zFIks8",
}),
}),
type: DatadogAPIClient::V2::GoogleChatOrganizationHandleType::GOOGLE_CHAT_ORGANIZATION_HANDLE_TYPE,
})
p api_instance.create_organization_handle("e54cb570-c674-529c-769d-84b312288ed7", body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Delete organization handle returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new

# there is a valid "organization_handle" in the system
ORGANIZATION_HANDLE_DATA_ID = ENV["ORGANIZATION_HANDLE_DATA_ID"]
api_instance.delete_organization_handle("e54cb570-c674-529c-769d-84b312288ed7", ORGANIZATION_HANDLE_DATA_ID)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Get organization handle returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new

# there is a valid "organization_handle" in the system
ORGANIZATION_HANDLE_DATA_ID = ENV["ORGANIZATION_HANDLE_DATA_ID"]
p api_instance.get_organization_handle("e54cb570-c674-529c-769d-84b312288ed7", ORGANIZATION_HANDLE_DATA_ID)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get space information by display name returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
p api_instance.get_space_by_display_name("datadog.ninja", "api-test-space")
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get all organization handles returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
p api_instance.list_organization_handles("e54cb570-c674-529c-769d-84b312288ed7")
18 changes: 18 additions & 0 deletions examples/v2/google-chat-integration/UpdateOrganizationHandle.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Update organization handle returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new

# there is a valid "organization_handle" in the system
ORGANIZATION_HANDLE_DATA_ATTRIBUTES_NAME = ENV["ORGANIZATION_HANDLE_DATA_ATTRIBUTES_NAME"]
ORGANIZATION_HANDLE_DATA_ID = ENV["ORGANIZATION_HANDLE_DATA_ID"]

body = DatadogAPIClient::V2::GoogleChatUpdateOrganizationHandleRequest.new({
data: DatadogAPIClient::V2::GoogleChatUpdateOrganizationHandleRequestData.new({
attributes: DatadogAPIClient::V2::GoogleChatUpdateOrganizationHandleRequestAttributes.new({
name: "fake-handle-name--updated",
}),
}),
type: DatadogAPIClient::V2::GoogleChatOrganizationHandleType::GOOGLE_CHAT_ORGANIZATION_HANDLE_TYPE,
})
p api_instance.update_organization_handle("e54cb570-c674-529c-769d-84b312288ed7", ORGANIZATION_HANDLE_DATA_ID, body)
Loading
Loading