Skip to content

Commit

Permalink
Regenerate client from commit b1d18df4 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 28, 2025
1 parent 2a3a7e2 commit c862554
Show file tree
Hide file tree
Showing 37 changed files with 3,795 additions and 42 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-28 14:57:27.800529",
"spec_repo_commit": "f832f43e"
"regenerated": "2025-01-28 20:05:58.369749",
"spec_repo_commit": "b1d18df4"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-28 14:57:27.815886",
"spec_repo_commit": "f832f43e"
"regenerated": "2025-01-28 20:05:58.386163",
"spec_repo_commit": "b1d18df4"
}
}
}
287 changes: 287 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,20 @@ components:
required: true
schema:
type: string
MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter:
description: Your workflows webhook handle id.
in: path
name: handle_id
required: true
schema:
type: string
MicrosoftTeamsWorkflowsWebhookHandleNameQueryParameter:
description: Your workflows webhook handle name.
in: query
name: name
required: false
schema:
type: string
OpsgenieServiceIDPathParameter:
description: The UUID of the service.
in: path
Expand Down Expand Up @@ -18685,6 +18699,14 @@ components:
required:
- data
type: object
MicrosoftTeamsCreateWorkflowsWebhookHandleRequest:
description: Create workflows webhook handle request.
properties:
data:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleRequestData'
required:
- data
type: object
MicrosoftTeamsGetChannelByNameResponse:
description: Response with channel, team, and tenant ID information.
properties:
Expand Down Expand Up @@ -18899,6 +18921,127 @@ components:
- type
- attributes
type: object
MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest:
description: Update workflows webhook handle request.
properties:
data:
$ref: '#/components/schemas/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData'
required:
- data
type: object
MicrosoftTeamsUpdateWorkflowsWebhookHandleRequestData:
description: Workflows Webhook handle data from a response.
properties:
attributes:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleAttributes'
type:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleType'
required:
- type
- attributes
type: object
MicrosoftTeamsWorkflowsWebhookHandleAttributes:
description: Workflows Webhook handle attributes.
properties:
name:
description: Workflows Webhook handle name.
example: fake-handle-name
maxLength: 255
type: string
url:
description: Workflows Webhook URL.
example: https://fake.url.com
maxLength: 255
type: string
type: object
MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes:
description: Workflows Webhook handle attributes.
properties:
name:
description: Workflows Webhook handle name.
example: fake-handle-name
maxLength: 255
type: string
url:
description: Workflows Webhook URL.
example: https://fake.url.com
maxLength: 255
type: string
required:
- name
- url
type: object
MicrosoftTeamsWorkflowsWebhookHandleRequestData:
description: Workflows Webhook handle data from a response.
properties:
attributes:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes'
type:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleType'
required:
- type
- attributes
type: object
MicrosoftTeamsWorkflowsWebhookHandleResponse:
description: Response of a workflows webhook handle.
properties:
data:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponseData'
required:
- data
type: object
MicrosoftTeamsWorkflowsWebhookHandleResponseData:
description: Workflows Webhook handle data from a response.
properties:
attributes:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookResponseAttributes'
id:
description: The ID of the workflows webhook handle.
example: 596da4af-0563-4097-90ff-07230c3f9db3
maxLength: 100
minLength: 1
type: string
type:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleType'
type: object
MicrosoftTeamsWorkflowsWebhookHandleType:
default: workflows-webhook-handle
description: Specifies the workflows webhook handle resource type.
enum:
- workflows-webhook-handle
example: workflows-webhook-handle
type: string
x-enum-varnames:
- WORKFLOWS_WEBHOOK_HANDLE
MicrosoftTeamsWorkflowsWebhookHandlesResponse:
description: Response with a list of workflows webhook handles.
properties:
data:
description: An array of workflows webhook handles.
example:
- attributes:
name: general-handle
id: 596da4af-0563-4097-90ff-07230c3f9db3
type: workflows-webhook-handle
- attributes:
name: general-handle-2
id: 596da4af-0563-4097-90ff-07230c3f9db4
type: workflows-webhook-handle
items:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponseData'
type: array
required:
- data
type: object
MicrosoftTeamsWorkflowsWebhookResponseAttributes:
description: Workflows Webhook handle attributes.
properties:
name:
description: Workflows Webhook handle name.
example: fake-handle-name
maxLength: 255
type: string
type: object
MonitorConfigPolicyAttributeCreateRequest:
description: Policy and policy type for a monitor configuration policy.
properties:
Expand Down Expand Up @@ -37543,6 +37686,150 @@ paths:
tags:
- Microsoft Teams Integration
x-codegen-request-body-name: body
/api/v2/integration/ms-teams/configuration/workflows-webhook-handles:
get:
description: Get a list of all workflows webhook handles from the Datadog Microsoft
Teams integration.
operationId: ListWorkflowsWebhookHandles
parameters:
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleNameQueryParameter'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandlesResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/ForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'412':
$ref: '#/components/responses/PreconditionFailedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get all workflows webhook handles
tags:
- Microsoft Teams Integration
post:
description: Create a workflows webhook handle in the Datadog Microsoft Teams
integration.
operationId: CreateWorkflowsWebhookHandle
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MicrosoftTeamsCreateWorkflowsWebhookHandleRequest'
description: Workflows Webhook handle payload.
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponse'
description: CREATED
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/ForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'409':
$ref: '#/components/responses/ConflictResponse'
'412':
$ref: '#/components/responses/PreconditionFailedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Create workflows webhook handle
tags:
- Microsoft Teams Integration
x-codegen-request-body-name: body
/api/v2/integration/ms-teams/configuration/workflows-webhook-handles/{handle_id}:
delete:
description: Delete a workflows webhook handle from the Datadog Microsoft Teams
integration.
operationId: DeleteWorkflowsWebhookHandle
parameters:
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter'
responses:
'204':
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/ForbiddenResponse'
'412':
$ref: '#/components/responses/PreconditionFailedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Delete workflows webhook handle
tags:
- Microsoft Teams Integration
get:
description: Get the name of a workflows webhook handle from the Datadog Microsoft
Teams integration.
operationId: GetWorkflowsWebhookHandle
parameters:
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/ForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'412':
$ref: '#/components/responses/PreconditionFailedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get workflows webhook handle information
tags:
- Microsoft Teams Integration
patch:
description: Update a workflows webhook handle from the Datadog Microsoft Teams
integration.
operationId: UpdateWorkflowsWebhookHandle
parameters:
- $ref: '#/components/parameters/MicrosoftTeamsWorkflowsWebhookHandleIDPathParameter'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest'
description: Workflows Webhook handle payload.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MicrosoftTeamsWorkflowsWebhookHandleResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/ForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'409':
$ref: '#/components/responses/ConflictResponse'
'412':
$ref: '#/components/responses/PreconditionFailedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Update workflows webhook handle
tags:
- Microsoft Teams Integration
x-codegen-request-body-name: body
/api/v2/integration/opsgenie/services:
get:
description: Get a list of all services from the Datadog Opsgenie integration.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Create workflows webhook handle returns "CREATED" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.MicrosoftTeamsIntegrationApi;
import com.datadog.api.client.v2.model.MicrosoftTeamsCreateWorkflowsWebhookHandleRequest;
import com.datadog.api.client.v2.model.MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes;
import com.datadog.api.client.v2.model.MicrosoftTeamsWorkflowsWebhookHandleRequestData;
import com.datadog.api.client.v2.model.MicrosoftTeamsWorkflowsWebhookHandleResponse;
import com.datadog.api.client.v2.model.MicrosoftTeamsWorkflowsWebhookHandleType;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
MicrosoftTeamsIntegrationApi apiInstance = new MicrosoftTeamsIntegrationApi(defaultClient);

MicrosoftTeamsCreateWorkflowsWebhookHandleRequest body =
new MicrosoftTeamsCreateWorkflowsWebhookHandleRequest()
.data(
new MicrosoftTeamsWorkflowsWebhookHandleRequestData()
.attributes(
new MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes()
.name("fake-handle-name")
.url("https://fake.url.com"))
.type(MicrosoftTeamsWorkflowsWebhookHandleType.WORKFLOWS_WEBHOOK_HANDLE));

try {
MicrosoftTeamsWorkflowsWebhookHandleResponse result =
apiInstance.createWorkflowsWebhookHandle(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println(
"Exception when calling MicrosoftTeamsIntegrationApi#createWorkflowsWebhookHandle");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Loading

0 comments on commit c862554

Please sign in to comment.