Skip to content

Commit

Permalink
Regenerate client from commit e7f4e7be of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 13, 2023
1 parent 9b52144 commit b26f894
Show file tree
Hide file tree
Showing 25 changed files with 1,225 additions and 26 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": "2023-10-13 14:48:27.165828",
"spec_repo_commit": "9c0d47b3"
"regenerated": "2023-10-13 20:41:18.975930",
"spec_repo_commit": "e7f4e7be"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-13 14:48:27.182800",
"spec_repo_commit": "9c0d47b3"
"regenerated": "2023-10-13 20:41:18.994048",
"spec_repo_commit": "e7f4e7be"
}
}
}
243 changes: 238 additions & 5 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ components:
type: string
account_id:
description: Your AWS Account ID without dashes.
example: '1234567'
example: '123456789012'
type: string
account_specific_namespace_rules:
additionalProperties:
Expand All @@ -80,7 +80,9 @@ components:
example: true
type: boolean
excluded_regions:
description: An array of AWS regions to exclude from metrics collection.
description: 'An array of [AWS regions](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints)

to exclude from metrics collection.'
example:
- us-east-1
- us-west-2
Expand Down Expand Up @@ -116,7 +118,7 @@ components:
example:
- $KEY:$VALUE
items:
description: The list of the the host_tags.
description: The list of the host_tags.
type: string
type: array
metrics_collection_enabled:
Expand Down Expand Up @@ -171,7 +173,7 @@ components:
type: string
account_id:
description: Your AWS Account ID without dashes.
example: '1234567'
example: '123456789012'
type: string
role_name:
description: Your Datadog role delegation name.
Expand All @@ -187,6 +189,136 @@ components:
$ref: '#/components/schemas/AWSAccount'
type: array
type: object
AWSEventBridgeAccountConfiguration:
description: The EventBridge configuration for one AWS account.
properties:
accountId:
description: Your AWS Account ID without dashes.
example: '123456789012'
type: string
eventHubs:
description: Array of AWS event sources associated with this account.
items:
$ref: '#/components/schemas/AWSEventBridgeSource'
type: array
tags:
description: 'Array of tags (in the form `key:value`) which are added to
all hosts

and metrics reporting through the main AWS integration.'
example:
- $KEY:$VALUE
items:
description: The list of the host_tags.
type: string
type: array
type: object
AWSEventBridgeCreateRequest:
description: An object used to create an EventBridge source.
properties:
account_id:
description: Your AWS Account ID without dashes.
example: '123456789012'
type: string
create_event_bus:
description: 'True if Datadog should create the event bus in addition to
the event

source. Requires the events:CreateEventBus permission.'
example: true
type: boolean
event_generator_name:
description: 'The given part of the event source name, which is then combined
with an

assigned suffix to form the full name.'
example: app-alerts
type: string
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
example: us-east-1
type: string
type: object
AWSEventBridgeCreateResponse:
description: A created EventBridge source.
properties:
event_source_name:
description: The event source name.
example: app-alerts-zyxw3210
type: string
has_bus:
description: True if the event bus was created in addition to the source.
example: true
type: boolean
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
example: us-east-1
type: string
status:
$ref: '#/components/schemas/AWSEventBridgeCreatedStatus'
type: object
AWSEventBridgeCreatedStatus:
description: The event source status "created".
enum:
- created
example: created
type: string
x-enum-varnames:
- CREATED
AWSEventBridgeDeleteRequest:
description: An object used to delete an EventBridge source.
properties:
account_id:
description: Your AWS Account ID without dashes.
example: '123456789012'
type: string
event_generator_name:
description: The event source name.
example: app-alerts-zyxw3210
type: string
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
example: us-east-1
type: string
type: object
AWSEventBridgeDeleteResponse:
description: An indicator of the successful deletion of an EventBridge source.
properties:
status:
$ref: '#/components/schemas/AWSEventBridgeEmptyStatus'
type: object
AWSEventBridgeEmptyStatus:
description: The event source status "empty".
enum:
- empty
example: empty
type: string
x-enum-varnames:
- EMPTY
AWSEventBridgeListResponse:
description: An object describing the EventBridge configuration for multiple
accounts.
properties:
accounts:
description: List of accounts with their event sources.
items:
$ref: '#/components/schemas/AWSEventBridgeAccountConfiguration'
type: array
isInstalled:
description: True if the EventBridge sub-integration is enabled for your
organization.
type: boolean
type: object
AWSEventBridgeSource:
description: An EventBridge source.
properties:
name:
description: The event source name.
type: string
region:
description: The event source's [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).
type: string
type: object
AWSLogsAsyncError:
description: Description of errors.
properties:
Expand Down Expand Up @@ -323,7 +455,7 @@ components:
properties:
account_id:
description: Your AWS Account ID without dashes.
example: '1234567'
example: '123456789012'
type: string
namespace:
$ref: '#/components/schemas/AWSNamespace'
Expand Down Expand Up @@ -23348,6 +23480,107 @@ paths:
summary: List namespace rules
tags:
- AWS Integration
/api/v1/integration/aws/event_bridge:
delete:
description: Delete an Amazon EventBridge source.
operationId: DeleteAWSEventBridgeSource
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeDeleteRequest'
description: Delete the Amazon EventBridge source with the given name, region,
and associated AWS account.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeDeleteResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Authentication Error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Delete an Amazon EventBridge source
tags:
- AWS Integration
x-codegen-request-body-name: body
get:
description: Get all Amazon EventBridge sources.
operationId: ListAWSEventBridgeSources
parameters: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeListResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Authentication Error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get all Amazon EventBridge sources
tags:
- AWS Integration
post:
description: Create an Amazon EventBridge source.
operationId: CreateAWSEventBridgeSource
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeCreateRequest'
description: Create an Amazon EventBridge source for an AWS account with a
given name and region.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSEventBridgeCreateResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Authentication Error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Create an Amazon EventBridge source
tags:
- AWS Integration
x-codegen-request-body-name: body
/api/v1/integration/aws/filtering:
delete:
description: Delete a tag filtering entry.
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/aws-integration/CreateAWSAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const apiInstance = new v1.AWSIntegrationApi(configuration);

const params: v1.AWSIntegrationApiCreateAWSAccountRequest = {
body: {
accountId: "1234567",
accountId: "123456789012",
accountSpecificNamespaceRules: {
auto_scaling: false,
opswork: false,
Expand Down
26 changes: 26 additions & 0 deletions examples/v1/aws-integration/CreateAWSEventBridgeSource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* Create an Amazon EventBridge source returns "OK" response
*/

import { client, v1 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration();
const apiInstance = new v1.AWSIntegrationApi(configuration);

const params: v1.AWSIntegrationApiCreateAWSEventBridgeSourceRequest = {
body: {
accountId: "123456789012",
createEventBus: true,
eventGeneratorName: "app-alerts",
region: "us-east-1",
},
};

apiInstance
.createAWSEventBridgeSource(params)
.then((data: v1.AWSEventBridgeCreateResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
2 changes: 1 addition & 1 deletion examples/v1/aws-integration/CreateAWSTagFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const apiInstance = new v1.AWSIntegrationApi(configuration);

const params: v1.AWSIntegrationApiCreateAWSTagFilterRequest = {
body: {
accountId: "1234567",
accountId: "123456789012",
namespace: "elb",
tagFilterStr: "prod*",
},
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/aws-integration/CreateNewAWSExternalID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const apiInstance = new v1.AWSIntegrationApi(configuration);

const params: v1.AWSIntegrationApiCreateNewAWSExternalIDRequest = {
body: {
accountId: "1234567",
accountId: "123456789012",
accountSpecificNamespaceRules: {
auto_scaling: false,
opswork: false,
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/aws-integration/DeleteAWSAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const apiInstance = new v1.AWSIntegrationApi(configuration);

const params: v1.AWSIntegrationApiDeleteAWSAccountRequest = {
body: {
accountId: "1234567",
accountId: "123456789012",
roleName: "DatadogAWSIntegrationRole",
},
};
Expand Down
25 changes: 25 additions & 0 deletions examples/v1/aws-integration/DeleteAWSEventBridgeSource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Delete an Amazon EventBridge source returns "OK" response
*/

import { client, v1 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration();
const apiInstance = new v1.AWSIntegrationApi(configuration);

const params: v1.AWSIntegrationApiDeleteAWSEventBridgeSourceRequest = {
body: {
accountId: "123456789012",
eventGeneratorName: "app-alerts-zyxw3210",
region: "us-east-1",
},
};

apiInstance
.deleteAWSEventBridgeSource(params)
.then((data: v1.AWSEventBridgeDeleteResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
Loading

0 comments on commit b26f894

Please sign in to comment.