Skip to content

Commit 3c0a6ba

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d7ddfde1 of spec repo
1 parent 3bab155 commit 3c0a6ba

20 files changed

+1208
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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": "2024-10-24 20:04:21.923156",
8-
"spec_repo_commit": "aaacb8db"
7+
"regenerated": "2024-10-25 14:27:09.687634",
8+
"spec_repo_commit": "d7ddfde1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-24 20:04:21.941746",
13-
"spec_repo_commit": "aaacb8db"
12+
"regenerated": "2024-10-25 14:27:09.706468",
13+
"spec_repo_commit": "d7ddfde1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7101,6 +7101,81 @@ components:
71017101
description: The type of the resource. The value should always be device.
71027102
type: string
71037103
type: object
7104+
DomainAllowlist:
7105+
description: The email domain allowlist for an org.
7106+
properties:
7107+
attributes:
7108+
$ref: '#/components/schemas/DomainAllowlistAttributes'
7109+
id:
7110+
description: The unique identifier of the org.
7111+
nullable: true
7112+
type: string
7113+
type:
7114+
$ref: '#/components/schemas/DomainAllowlistType'
7115+
required:
7116+
- type
7117+
type: object
7118+
DomainAllowlistAttributes:
7119+
description: The details of the email domain allowlist.
7120+
properties:
7121+
domains:
7122+
description: The list of domains in the email domain allowlist.
7123+
items:
7124+
type: string
7125+
type: array
7126+
enabled:
7127+
description: Whether the email domain allowlist is enabled for the org.
7128+
type: boolean
7129+
type: object
7130+
DomainAllowlistRequest:
7131+
description: Request containing the desired email domain allowlist configuration.
7132+
properties:
7133+
data:
7134+
$ref: '#/components/schemas/DomainAllowlist'
7135+
required:
7136+
- data
7137+
type: object
7138+
DomainAllowlistResponse:
7139+
description: Response containing information about the email domain allowlist.
7140+
properties:
7141+
data:
7142+
$ref: '#/components/schemas/DomainAllowlistResponseData'
7143+
type: object
7144+
DomainAllowlistResponseData:
7145+
description: The email domain allowlist response for an org.
7146+
properties:
7147+
attributes:
7148+
$ref: '#/components/schemas/DomainAllowlistResponseDataAttributes'
7149+
id:
7150+
description: The unique identifier of the org.
7151+
nullable: true
7152+
type: string
7153+
type:
7154+
$ref: '#/components/schemas/DomainAllowlistType'
7155+
required:
7156+
- type
7157+
type: object
7158+
DomainAllowlistResponseDataAttributes:
7159+
description: The details of the email domain allowlist
7160+
properties:
7161+
domains:
7162+
description: The list of domains in the email domain allowlist.
7163+
items:
7164+
type: string
7165+
type: array
7166+
enabled:
7167+
description: Whether the email domain allowlist is enabled for the org.
7168+
type: boolean
7169+
type: object
7170+
DomainAllowlistType:
7171+
default: domain_allowlist
7172+
description: Email Domain Allowlist allowlist type.
7173+
enum:
7174+
- domain_allowlist
7175+
example: domain_allowlist
7176+
type: string
7177+
x-enum-varnames:
7178+
- DOMAIN_ALLOWLIST
71047179
DowntimeCreateRequest:
71057180
description: Request for creating a downtime.
71067181
properties:
@@ -29218,6 +29293,61 @@ paths:
2921829293
tags:
2921929294
- Dashboard Lists
2922029295
x-codegen-request-body-name: body
29296+
/api/v2/domain_allowlist:
29297+
get:
29298+
description: Get the domain allowlist for an organization.
29299+
operationId: GetDomainAllowlist
29300+
responses:
29301+
'200':
29302+
content:
29303+
application/json:
29304+
schema:
29305+
$ref: '#/components/schemas/DomainAllowlistResponse'
29306+
description: OK
29307+
'429':
29308+
$ref: '#/components/responses/TooManyRequestsResponse'
29309+
security:
29310+
- apiKeyAuth: []
29311+
appKeyAuth: []
29312+
- AuthZ:
29313+
- org_management
29314+
summary: Get Domain Allowlist
29315+
tags:
29316+
- Domain Allowlist
29317+
x-permission:
29318+
operator: OR
29319+
permissions:
29320+
- org_management
29321+
patch:
29322+
description: Update the domain allowlist for an organization.
29323+
operationId: PatchDomainAllowlist
29324+
requestBody:
29325+
content:
29326+
application/json:
29327+
schema:
29328+
$ref: '#/components/schemas/DomainAllowlistRequest'
29329+
required: true
29330+
responses:
29331+
'200':
29332+
content:
29333+
application/json:
29334+
schema:
29335+
$ref: '#/components/schemas/DomainAllowlistResponse'
29336+
description: OK
29337+
'429':
29338+
$ref: '#/components/responses/TooManyRequestsResponse'
29339+
security:
29340+
- apiKeyAuth: []
29341+
appKeyAuth: []
29342+
- AuthZ:
29343+
- org_management
29344+
summary: Sets Domain Allowlist
29345+
tags:
29346+
- Domain Allowlist
29347+
x-permission:
29348+
operator: OR
29349+
permissions:
29350+
- org_management
2922129351
/api/v2/dora/deployment:
2922229352
post:
2922329353
description: 'Use this API endpoint to provide data about deployments for DORA
@@ -41371,6 +41501,12 @@ tags:
4137141501

4137241502
organization.'
4137341503
name: Dashboard Lists
41504+
- description: 'Configure your Datadog Email Domain Allowlist directly through the
41505+
Datadog API.
41506+
41507+
The Email Domain Allowlist controls the domains that certain datadog emails can
41508+
be sent to.'
41509+
name: Domain Allowlist
4137441510
- description: '**Note**: Downtime V2 is currently in private beta. To request access,
4137541511
contact [Datadog support](https://docs.datadoghq.com/help/).
4137641512

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-10-23T18:16:16.668Z

cassettes/features/v2/domain_allowlist/Get-Domain-Allowlist-returns-OK-response.yml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-10-23T18:16:16.928Z

cassettes/features/v2/domain_allowlist/Sets-Domain-Allowlist-returns-OK-response.yml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get Domain Allowlist returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DomainAllowlistAPI.new
5+
p api_instance.get_domain_allowlist()
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Sets Domain Allowlist returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DomainAllowlistAPI.new
5+
6+
body = DatadogAPIClient::V2::DomainAllowlistRequest.new({
7+
data: DatadogAPIClient::V2::DomainAllowlist.new({
8+
attributes: DatadogAPIClient::V2::DomainAllowlistAttributes.new({
9+
domains: [
10+
"@static-test-domain.test",
11+
],
12+
enabled: false,
13+
}),
14+
type: DatadogAPIClient::V2::DomainAllowlistType::DOMAIN_ALLOWLIST,
15+
}),
16+
})
17+
p api_instance.patch_domain_allowlist(body)

features/scenarios_model_mapping.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,9 @@
11851185
"dashboard_list_id" => "Integer",
11861186
"body" => "DashboardListUpdateItemsRequest",
11871187
},
1188+
"v2.PatchDomainAllowlist" => {
1189+
"body" => "DomainAllowlistRequest",
1190+
},
11881191
"v2.CreateDORADeployment" => {
11891192
"body" => "DORADeploymentRequest",
11901193
},
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@endpoint(domain-allowlist) @endpoint(domain-allowlist-v2)
2+
Feature: Domain Allowlist
3+
Configure your Datadog Email Domain Allowlist directly through the Datadog
4+
API. The Email Domain Allowlist controls the domains that certain datadog
5+
emails can be sent to.
6+
7+
Background:
8+
Given a valid "apiKeyAuth" key in the system
9+
And a valid "appKeyAuth" key in the system
10+
And an instance of "DomainAllowlist" API
11+
12+
@team:Datadog/team-aaa-dogmail
13+
Scenario: Get Domain Allowlist returns "OK" response
14+
Given new "GetDomainAllowlist" request
15+
When the request is sent
16+
Then the response status is 200 OK
17+
And the response "data.type" is equal to "domain_allowlist"
18+
And the response "data.attributes.domains[0]" array contains value "@static-test-domain.test"
19+
And the response "data.attributes.enabled" is equal to false
20+
21+
@team:Datadog/team-aaa-dogmail
22+
Scenario: Sets Domain Allowlist returns "OK" response
23+
Given new "PatchDomainAllowlist" request
24+
And body with value {"data": {"attributes": {"domains": ["@static-test-domain.test"], "enabled": false}, "type": "domain_allowlist"}}
25+
When the request is sent
26+
Then the response status is 200 OK
27+
And the response "data.type" is equal to "domain_allowlist"
28+
And the response "data.attributes.domains" has length 1
29+
And the response "data.attributes.domains[0]" array contains value "@static-test-domain.test"
30+
And the response "data.attributes.enabled" is equal to false

0 commit comments

Comments
 (0)