Skip to content

Commit

Permalink
Regenerate client from commit 57e19dba of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 24, 2023
1 parent 60fcac7 commit ea8faef
Show file tree
Hide file tree
Showing 24 changed files with 1,298 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-23 18:35:24.241023",
"spec_repo_commit": "696abec0"
"regenerated": "2023-10-24 14:33:55.105505",
"spec_repo_commit": "57e19dba"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-23 18:35:24.255922",
"spec_repo_commit": "696abec0"
"regenerated": "2023-10-24 14:33:55.120890",
"spec_repo_commit": "57e19dba"
}
}
}
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/AWSEventBridgeCreateStatus'
type: object
AWSEventBridgeCreateStatus:
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/AWSEventBridgeDeleteStatus'
type: object
AWSEventBridgeDeleteStatus:
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 @@ -23393,6 +23525,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.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

body = DatadogAPIClient::V1::AWSAccount.new({
account_id: "1234567",
account_id: "123456789012",
account_specific_namespace_rules: {
auto_scaling: false, opswork: false,
},
Expand Down
12 changes: 12 additions & 0 deletions examples/v1/aws-integration/CreateAWSEventBridgeSource.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Create an Amazon EventBridge source returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

body = DatadogAPIClient::V1::AWSEventBridgeCreateRequest.new({
account_id: "123456789012",
create_event_bus: true,
event_generator_name: "app-alerts",
region: "us-east-1",
})
p api_instance.create_aws_event_bridge_source(body)
2 changes: 1 addition & 1 deletion examples/v1/aws-integration/CreateAWSTagFilter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

body = DatadogAPIClient::V1::AWSTagFilterCreateRequest.new({
account_id: "1234567",
account_id: "123456789012",
namespace: DatadogAPIClient::V1::AWSNamespace::ELB,
tag_filter_str: "prod*",
})
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/aws-integration/CreateNewAWSExternalID.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

body = DatadogAPIClient::V1::AWSAccount.new({
account_id: "1234567",
account_id: "123456789012",
account_specific_namespace_rules: {
auto_scaling: false, opswork: false,
},
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/aws-integration/DeleteAWSAccount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

body = DatadogAPIClient::V1::AWSAccountDeleteRequest.new({
account_id: "1234567",
account_id: "123456789012",
role_name: "DatadogAWSIntegrationRole",
})
p api_instance.delete_aws_account(body)
11 changes: 11 additions & 0 deletions examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Delete an Amazon EventBridge source returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

body = DatadogAPIClient::V1::AWSEventBridgeDeleteRequest.new({
account_id: "123456789012",
event_generator_name: "app-alerts-zyxw3210",
region: "us-east-1",
})
p api_instance.delete_aws_event_bridge_source(body)
5 changes: 5 additions & 0 deletions examples/v1/aws-integration/ListAWSEventBridgeSources.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get all Amazon EventBridge sources returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new
p api_instance.list_aws_event_bridge_sources()
6 changes: 6 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@
"access_key_id" => "String",
"body" => "AWSAccount",
},
"v1.DeleteAWSEventBridgeSource" => {
"body" => "AWSEventBridgeDeleteRequest",
},
"v1.CreateAWSEventBridgeSource" => {
"body" => "AWSEventBridgeCreateRequest",
},
"v1.DeleteAWSTagFilter" => {
"body" => "AWSTagFilterDeleteRequest",
},
Expand Down
Loading

0 comments on commit ea8faef

Please sign in to comment.