Skip to content

Commit deef2c5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8bc6e50c of spec repo
1 parent bc6281e commit deef2c5

File tree

39 files changed

+3349
-114
lines changed

39 files changed

+3349
-114
lines changed

Diff for: .apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-01-31 15:03:07.218117",
8-
"spec_repo_commit": "b01f90f4"
7+
"regenerated": "2025-02-03 14:15:19.494548",
8+
"spec_repo_commit": "8bc6e50c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-31 15:03:07.236273",
13-
"spec_repo_commit": "b01f90f4"
12+
"regenerated": "2025-02-03 14:15:19.509654",
13+
"spec_repo_commit": "8bc6e50c"
1414
}
1515
}
1616
}

Diff for: .generator/schemas/v2/openapi.yaml

+287
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,20 @@ components:
532532
required: true
533533
schema:
534534
type: string
535+
MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter:
536+
description: Your Workflows webhook handle id.
537+
in: path
538+
name: handle_id
539+
required: true
540+
schema:
541+
type: string
542+
MicrosoftTeamsWorkflowsWebhookHandleNameQueryParameter:
543+
description: Your Workflows webhook handle name.
544+
in: query
545+
name: name
546+
required: false
547+
schema:
548+
type: string
535549
OpsgenieServiceIDPathParameter:
536550
description: The UUID of the service.
537551
in: path
@@ -18686,6 +18700,14 @@ components:
1868618700
required:
1868718701
- data
1868818702
type: object
18703+
MicrosoftTeamsCreateWorkflowsWebhookHandleRequest:
18704+
description: Create Workflows webhook handle request.
18705+
properties:
18706+
data:
18707+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleRequestData'
18708+
required:
18709+
- data
18710+
type: object
1868918711
MicrosoftTeamsGetChannelByNameResponse:
1869018712
description: Response with channel, team, and tenant ID information.
1869118713
properties:
@@ -18900,6 +18922,127 @@ components:
1890018922
- type
1890118923
- attributes
1890218924
type: object
18925+
MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest:
18926+
description: Update Workflows webhook handle request.
18927+
properties:
18928+
data:
18929+
$ref: '#/components/schemas/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData'
18930+
required:
18931+
- data
18932+
type: object
18933+
MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData:
18934+
description: Workflows Webhook handle data from a response.
18935+
properties:
18936+
attributes:
18937+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleAttributes'
18938+
type:
18939+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleType'
18940+
required:
18941+
- type
18942+
- attributes
18943+
type: object
18944+
MicrosoftTeamsWorkflowsWebhookHandleAttributes:
18945+
description: Workflows Webhook handle attributes.
18946+
properties:
18947+
name:
18948+
description: Workflows Webhook handle name.
18949+
example: fake-handle-name
18950+
maxLength: 255
18951+
type: string
18952+
url:
18953+
description: Workflows Webhook URL.
18954+
example: https://fake.url.com
18955+
maxLength: 255
18956+
type: string
18957+
type: object
18958+
MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes:
18959+
description: Workflows Webhook handle attributes.
18960+
properties:
18961+
name:
18962+
description: Workflows Webhook handle name.
18963+
example: fake-handle-name
18964+
maxLength: 255
18965+
type: string
18966+
url:
18967+
description: Workflows Webhook URL.
18968+
example: https://fake.url.com
18969+
maxLength: 255
18970+
type: string
18971+
required:
18972+
- name
18973+
- url
18974+
type: object
18975+
MicrosoftTeamsWorkflowsWebhookHandleRequestData:
18976+
description: Workflows Webhook handle data from a response.
18977+
properties:
18978+
attributes:
18979+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes'
18980+
type:
18981+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleType'
18982+
required:
18983+
- type
18984+
- attributes
18985+
type: object
18986+
MicrosoftTeamsWorkflowsWebhookHandleResponse:
18987+
description: Response of a Workflows webhook handle.
18988+
properties:
18989+
data:
18990+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponseData'
18991+
required:
18992+
- data
18993+
type: object
18994+
MicrosoftTeamsWorkflowsWebhookHandleResponseData:
18995+
description: Workflows Webhook handle data from a response.
18996+
properties:
18997+
attributes:
18998+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookResponseAttributes'
18999+
id:
19000+
description: The ID of the Workflows webhook handle.
19001+
example: 596da4af-0563-4097-90ff-07230c3f9db3
19002+
maxLength: 100
19003+
minLength: 1
19004+
type: string
19005+
type:
19006+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleType'
19007+
type: object
19008+
MicrosoftTeamsWorkflowsWebhookHandleType:
19009+
default: workflows-webhook-handle
19010+
description: Specifies the Workflows webhook handle resource type.
19011+
enum:
19012+
- workflows-webhook-handle
19013+
example: workflows-webhook-handle
19014+
type: string
19015+
x-enum-varnames:
19016+
- WORKFLOWS_WEBHOOK_HANDLE
19017+
MicrosoftTeamsWorkflowsWebhookHandlesResponse:
19018+
description: Response with a list of Workflows webhook handles.
19019+
properties:
19020+
data:
19021+
description: An array of Workflows webhook handles.
19022+
example:
19023+
- attributes:
19024+
name: general-handle
19025+
id: 596da4af-0563-4097-90ff-07230c3f9db3
19026+
type: workflows-webhook-handle
19027+
- attributes:
19028+
name: general-handle-2
19029+
id: 596da4af-0563-4097-90ff-07230c3f9db4
19030+
type: workflows-webhook-handle
19031+
items:
19032+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponseData'
19033+
type: array
19034+
required:
19035+
- data
19036+
type: object
19037+
MicrosoftTeamsWorkflowsWebhookResponseAttributes:
19038+
description: Workflows Webhook handle attributes.
19039+
properties:
19040+
name:
19041+
description: Workflows Webhook handle name.
19042+
example: fake-handle-name
19043+
maxLength: 255
19044+
type: string
19045+
type: object
1890319046
MonitorConfigPolicyAttributeCreateRequest:
1890419047
description: Policy and policy type for a monitor configuration policy.
1890519048
properties:
@@ -37538,6 +37681,150 @@ paths:
3753837681
tags:
3753937682
- Microsoft Teams Integration
3754037683
x-codegen-request-body-name: body
37684+
/api/v2/integration/ms-teams/configuration/workflows-webhook-handles:
37685+
get:
37686+
description: Get a list of all Workflows webhook handles from the Datadog Microsoft
37687+
Teams integration.
37688+
operationId: ListWorkflowsWebhookHandles
37689+
parameters:
37690+
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleNameQueryParameter'
37691+
responses:
37692+
'200':
37693+
content:
37694+
application/json:
37695+
schema:
37696+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandlesResponse'
37697+
description: OK
37698+
'400':
37699+
$ref: '#/components/responses/BadRequestResponse'
37700+
'403':
37701+
$ref: '#/components/responses/ForbiddenResponse'
37702+
'404':
37703+
$ref: '#/components/responses/NotFoundResponse'
37704+
'412':
37705+
$ref: '#/components/responses/PreconditionFailedResponse'
37706+
'429':
37707+
$ref: '#/components/responses/TooManyRequestsResponse'
37708+
summary: Get all Workflows webhook handles
37709+
tags:
37710+
- Microsoft Teams Integration
37711+
post:
37712+
description: Create a Workflows webhook handle in the Datadog Microsoft Teams
37713+
integration.
37714+
operationId: CreateWorkflowsWebhookHandle
37715+
requestBody:
37716+
content:
37717+
application/json:
37718+
schema:
37719+
$ref: '#/components/schemas/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest'
37720+
description: Workflows Webhook handle payload.
37721+
required: true
37722+
responses:
37723+
'201':
37724+
content:
37725+
application/json:
37726+
schema:
37727+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponse'
37728+
description: CREATED
37729+
'400':
37730+
$ref: '#/components/responses/BadRequestResponse'
37731+
'403':
37732+
$ref: '#/components/responses/ForbiddenResponse'
37733+
'404':
37734+
$ref: '#/components/responses/NotFoundResponse'
37735+
'409':
37736+
$ref: '#/components/responses/ConflictResponse'
37737+
'412':
37738+
$ref: '#/components/responses/PreconditionFailedResponse'
37739+
'429':
37740+
$ref: '#/components/responses/TooManyRequestsResponse'
37741+
summary: Create Workflows webhook handle
37742+
tags:
37743+
- Microsoft Teams Integration
37744+
x-codegen-request-body-name: body
37745+
/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}:
37746+
delete:
37747+
description: Delete a Workflows webhook handle from the Datadog Microsoft Teams
37748+
integration.
37749+
operationId: DeleteWorkflowsWebhookHandle
37750+
parameters:
37751+
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter'
37752+
responses:
37753+
'204':
37754+
description: OK
37755+
'400':
37756+
$ref: '#/components/responses/BadRequestResponse'
37757+
'403':
37758+
$ref: '#/components/responses/ForbiddenResponse'
37759+
'412':
37760+
$ref: '#/components/responses/PreconditionFailedResponse'
37761+
'429':
37762+
$ref: '#/components/responses/TooManyRequestsResponse'
37763+
summary: Delete Workflows webhook handle
37764+
tags:
37765+
- Microsoft Teams Integration
37766+
get:
37767+
description: Get the name of a Workflows webhook handle from the Datadog Microsoft
37768+
Teams integration.
37769+
operationId: GetWorkflowsWebhookHandle
37770+
parameters:
37771+
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter'
37772+
responses:
37773+
'200':
37774+
content:
37775+
application/json:
37776+
schema:
37777+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponse'
37778+
description: OK
37779+
'400':
37780+
$ref: '#/components/responses/BadRequestResponse'
37781+
'403':
37782+
$ref: '#/components/responses/ForbiddenResponse'
37783+
'404':
37784+
$ref: '#/components/responses/NotFoundResponse'
37785+
'412':
37786+
$ref: '#/components/responses/PreconditionFailedResponse'
37787+
'429':
37788+
$ref: '#/components/responses/TooManyRequestsResponse'
37789+
summary: Get Workflows webhook handle information
37790+
tags:
37791+
- Microsoft Teams Integration
37792+
patch:
37793+
description: Update a Workflows webhook handle from the Datadog Microsoft Teams
37794+
integration.
37795+
operationId: UpdateWorkflowsWebhookHandle
37796+
parameters:
37797+
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter'
37798+
requestBody:
37799+
content:
37800+
application/json:
37801+
schema:
37802+
$ref: '#/components/schemas/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest'
37803+
description: Workflows Webhook handle payload.
37804+
required: true
37805+
responses:
37806+
'200':
37807+
content:
37808+
application/json:
37809+
schema:
37810+
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponse'
37811+
description: OK
37812+
'400':
37813+
$ref: '#/components/responses/BadRequestResponse'
37814+
'403':
37815+
$ref: '#/components/responses/ForbiddenResponse'
37816+
'404':
37817+
$ref: '#/components/responses/NotFoundResponse'
37818+
'409':
37819+
$ref: '#/components/responses/ConflictResponse'
37820+
'412':
37821+
$ref: '#/components/responses/PreconditionFailedResponse'
37822+
'429':
37823+
$ref: '#/components/responses/TooManyRequestsResponse'
37824+
summary: Update Workflows webhook handle
37825+
tags:
37826+
- Microsoft Teams Integration
37827+
x-codegen-request-body-name: body
3754137828
/api/v2/integration/opsgenie/services:
3754237829
get:
3754337830
description: Get a list of all services from the Datadog Opsgenie integration.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Create Workflows webhook handle returns "CREATED" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_microsoft_teams_integration::MicrosoftTeamsIntegrationAPI;
4+
use datadog_api_client::datadogV2::model::MicrosoftTeamsCreateWorkflowsWebhookHandleRequest;
5+
use datadog_api_client::datadogV2::model::MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes;
6+
use datadog_api_client::datadogV2::model::MicrosoftTeamsWorkflowsWebhookHandleRequestData;
7+
use datadog_api_client::datadogV2::model::MicrosoftTeamsWorkflowsWebhookHandleType;
8+
9+
#[tokio::main]
10+
async fn main() {
11+
let body = MicrosoftTeamsCreateWorkflowsWebhookHandleRequest::new(
12+
MicrosoftTeamsWorkflowsWebhookHandleRequestData::new(
13+
MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes::new(
14+
"fake-handle-name".to_string(),
15+
"https://fake.url.com".to_string(),
16+
),
17+
MicrosoftTeamsWorkflowsWebhookHandleType::WORKFLOWS_WEBHOOK_HANDLE,
18+
),
19+
);
20+
let configuration = datadog::Configuration::new();
21+
let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
22+
let resp = api.create_workflows_webhook_handle(body).await;
23+
if let Ok(value) = resp {
24+
println!("{:#?}", value);
25+
} else {
26+
println!("{:#?}", resp.unwrap_err());
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Create workflow webhook handle returns "CREATED" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_microsoft_teams_integration::MicrosoftTeamsIntegrationAPI;
4+
use datadog_api_client::datadogV2::model::MicrosoftTeamsCreateWorkflowsWebhookHandleRequest;
5+
use datadog_api_client::datadogV2::model::MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes;
6+
use datadog_api_client::datadogV2::model::MicrosoftTeamsWorkflowsWebhookHandleRequestData;
7+
use datadog_api_client::datadogV2::model::MicrosoftTeamsWorkflowsWebhookHandleType;
8+
9+
#[tokio::main]
10+
async fn main() {
11+
let body = MicrosoftTeamsCreateWorkflowsWebhookHandleRequest::new(
12+
MicrosoftTeamsWorkflowsWebhookHandleRequestData::new(
13+
MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes::new(
14+
"Example-Microsoft-Teams-Integration".to_string(),
15+
"https://fake.url.com".to_string(),
16+
),
17+
MicrosoftTeamsWorkflowsWebhookHandleType::WORKFLOWS_WEBHOOK_HANDLE,
18+
),
19+
);
20+
let configuration = datadog::Configuration::new();
21+
let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
22+
let resp = api.create_workflows_webhook_handle(body).await;
23+
if let Ok(value) = resp {
24+
println!("{:#?}", value);
25+
} else {
26+
println!("{:#?}", resp.unwrap_err());
27+
}
28+
}

0 commit comments

Comments
 (0)