Skip to content

Commit 0e49914

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1a588f4 of spec repo
1 parent c4be5f8 commit 0e49914

40 files changed

Lines changed: 4411 additions & 42 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 589 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Create a target audience returns "CREATED" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
6+
body = DatadogAPIClient::V2::GoogleChatTargetAudienceCreateRequest.new({
7+
data: DatadogAPIClient::V2::GoogleChatTargetAudienceCreateRequestData.new({
8+
attributes: DatadogAPIClient::V2::GoogleChatTargetAudienceCreateRequestAttributes.new({
9+
audience_id: "fake-audience-id-1",
10+
audience_name: "fake audience name 1",
11+
}),
12+
type: DatadogAPIClient::V2::GoogleChatTargetAudienceType::GOOGLE_CHAT_TARGET_AUDIENCE_TYPE,
13+
}),
14+
})
15+
p api_instance.create_google_chat_target_audience("organization_binding_id", body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete the delegated user returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
api_instance.delete_google_chat_delegated_user("organization_binding_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a Google Chat organization binding returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
api_instance.delete_google_chat_organization("organization_binding_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a target audience returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
api_instance.delete_google_chat_target_audience("organization_binding_id", "target_audience_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get the delegated user returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
p api_instance.get_google_chat_delegated_user("organization_binding_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a Google Chat organization binding returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
p api_instance.get_google_chat_organization("organization_binding_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a target audience returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
p api_instance.get_google_chat_target_audience("organization_binding_id", "target_audience_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get all Google Chat organization bindings returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
p api_instance.list_google_chat_organizations()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get all target audiences returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new
5+
p api_instance.list_google_chat_target_audiences("organization_binding_id")

0 commit comments

Comments
 (0)