Skip to content

Commit e7fac0c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 55c44b05 of spec repo
1 parent 879c7d9 commit e7fac0c

File tree

26 files changed

+1331
-7
lines changed

26 files changed

+1331
-7
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-07-10 18:18:26.207626",
8-
"spec_repo_commit": "83dbc3db"
7+
"regenerated": "2024-07-11 15:33:47.964643",
8+
"spec_repo_commit": "55c44b05"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-10 18:18:26.225735",
13-
"spec_repo_commit": "83dbc3db"
12+
"regenerated": "2024-07-11 15:33:47.982375",
13+
"spec_repo_commit": "55c44b05"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14067,6 +14067,7 @@ components:
1406714067
required:
1406814068
- password
1406914069
- username
14070+
- type
1407014071
type: object
1407114072
SyntheticsBasicAuthDigestType:
1407214073
default: digest
@@ -14150,6 +14151,7 @@ components:
1415014151
- tokenApiAuthentication
1415114152
- clientId
1415214153
- clientSecret
14154+
- type
1415314155
type: object
1415414156
SyntheticsBasicAuthOauthClientType:
1415514157
default: oauth-client
@@ -14205,6 +14207,7 @@ components:
1420514207
- password
1420614208
- tokenApiAuthentication
1420714209
- username
14210+
- type
1420814211
type: object
1420914212
SyntheticsBasicAuthOauthROPType:
1421014213
default: oauth-rop

.generator/schemas/v2/openapi.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17377,6 +17377,18 @@ components:
1737717377
required:
1737817378
- status
1737917379
type: object
17380+
SecurityMonitoringRuleConvertPayload:
17381+
description: Convert a rule from JSON to Terraform.
17382+
oneOf:
17383+
- $ref: '#/components/schemas/SecurityMonitoringStandardRulePayload'
17384+
- $ref: '#/components/schemas/SecurityMonitoringSignalRulePayload'
17385+
SecurityMonitoringRuleConvertResponse:
17386+
description: Result of the convert rule request containing Terraform content.
17387+
properties:
17388+
terraformContent:
17389+
description: Terraform string as a result of converting the rule from JSON.
17390+
type: string
17391+
type: object
1738017392
SecurityMonitoringRuleCreatePayload:
1738117393
description: Create a new rule.
1738217394
oneOf:
@@ -33246,6 +33258,47 @@ paths:
3324633258
tags:
3324733259
- Security Monitoring
3324833260
x-codegen-request-body-name: body
33261+
/api/v2/security_monitoring/rules/convert:
33262+
post:
33263+
description: 'Convert a rule that doesn''t (yet) exist from JSON to Terraform
33264+
for datadog provider
33265+
33266+
resource datadog_security_monitoring_rule.'
33267+
operationId: ConvertSecurityMonitoringRuleFromJSONToTerraform
33268+
requestBody:
33269+
content:
33270+
application/json:
33271+
schema:
33272+
$ref: '#/components/schemas/SecurityMonitoringRuleConvertPayload'
33273+
required: true
33274+
responses:
33275+
'200':
33276+
content:
33277+
application/json:
33278+
schema:
33279+
$ref: '#/components/schemas/SecurityMonitoringRuleConvertResponse'
33280+
description: OK
33281+
'400':
33282+
$ref: '#/components/responses/BadRequestResponse'
33283+
'401':
33284+
$ref: '#/components/responses/ConcurrentModificationResponse'
33285+
'403':
33286+
$ref: '#/components/responses/NotAuthorizedResponse'
33287+
'404':
33288+
$ref: '#/components/responses/NotFoundResponse'
33289+
'429':
33290+
$ref: '#/components/responses/TooManyRequestsResponse'
33291+
security:
33292+
- apiKeyAuth: []
33293+
appKeyAuth: []
33294+
- AuthZ:
33295+
- security_monitoring_rules_write
33296+
summary: Convert a rule from JSON to Terraform
33297+
tags:
33298+
- Security Monitoring
33299+
x-codegen-request-body-name: body
33300+
x-unstable: '**Note**: This feature is in private beta. Reach out to support
33301+
to request access.'
3324933302
/api/v2/security_monitoring/rules/test:
3325033303
post:
3325133304
description: Test a rule.
@@ -33403,6 +33456,39 @@ paths:
3340333456
tags:
3340433457
- Security Monitoring
3340533458
x-codegen-request-body-name: body
33459+
/api/v2/security_monitoring/rules/{rule_id}/convert:
33460+
get:
33461+
description: 'Convert an existing rule from JSON to Terraform for datadog provider
33462+
33463+
resource datadog_security_monitoring_rule.'
33464+
operationId: ConvertExistingSecurityMonitoringRule
33465+
parameters:
33466+
- $ref: '#/components/parameters/SecurityMonitoringRuleID'
33467+
responses:
33468+
'200':
33469+
content:
33470+
application/json:
33471+
schema:
33472+
$ref: '#/components/schemas/SecurityMonitoringRuleConvertResponse'
33473+
description: OK
33474+
'400':
33475+
$ref: '#/components/responses/BadRequestResponse'
33476+
'403':
33477+
$ref: '#/components/responses/NotAuthorizedResponse'
33478+
'404':
33479+
$ref: '#/components/responses/NotFoundResponse'
33480+
'429':
33481+
$ref: '#/components/responses/TooManyRequestsResponse'
33482+
security:
33483+
- apiKeyAuth: []
33484+
appKeyAuth: []
33485+
- AuthZ:
33486+
- security_monitoring_rules_read
33487+
summary: Convert an existing rule from JSON to Terraform
33488+
tags:
33489+
- Security Monitoring
33490+
x-unstable: '**Note**: This feature is in private beta. Reach out to support
33491+
to request access.'
3340633492
/api/v2/security_monitoring/rules/{rule_id}/test:
3340733493
post:
3340833494
description: Test an existing rule.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-07-05T12:58:17.908Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"log": {
3+
"_recordingName": "Synthetics/Create a multi-step api test with every type of basicAuth returns \"OK - Returns the created test details.\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "a67ddceb4394f93bfa261b93d44471af",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 2174,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 579,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"config\":{\"steps\":[{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"password\":\"password\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"password\":\"password\",\"type\":\"web\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"accessKey\":\"accessKey\",\"secretKey\":\"secretKey\",\"type\":\"sigv4\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"type\":\"ntlm\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"password\":\"password\",\"type\":\"digest\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"accessTokenUrl\":\"accessTokenUrl\",\"clientId\":\"clientId\",\"clientSecret\":\"clientSecret\",\"tokenApiAuthentication\":\"header\",\"type\":\"oauth-client\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"accessTokenUrl\":\"accessTokenUrl\",\"password\":\"password\",\"tokenApiAuthentication\":\"header\",\"type\":\"oauth-rop\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\"}]},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_with_every_type_of_basic_auth.json\",\"name\":\"Test-Create_a_multi_step_api_test_with_every_type_of_basicAuth_returns_OK_Returns_the_created_test_detail-1720184297\",\"options\":{\"tick_every\":60},\"subtype\":\"multi\",\"type\":\"api\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/api"
39+
},
40+
"response": {
41+
"bodySize": 2687,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 2687,
45+
"text": "{\"public_id\":\"56p-u4n-28g\",\"name\":\"Test-Create_a_multi_step_api_test_with_every_type_of_basicAuth_returns_OK_Returns_the_created_test_detail-1720184297\",\"status\":\"live\",\"type\":\"api\",\"tags\":[],\"created_at\":\"2024-07-05T12:58:18.584903+00:00\",\"modified_at\":\"2024-07-05T12:58:18.584903+00:00\",\"config\":{\"steps\":[{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"password\":\"password\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\",\"id\":\"ff5-wjd-ccw\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"password\":\"password\",\"type\":\"web\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\",\"id\":\"db3-du3-8gk\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"accessKey\":\"accessKey\",\"secretKey\":\"secretKey\",\"type\":\"sigv4\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\",\"id\":\"3f9-7ax-tft\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"type\":\"ntlm\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\",\"id\":\"aid-ufz-avb\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"password\":\"password\",\"type\":\"digest\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\",\"id\":\"y54-ebw-t9y\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"accessTokenUrl\":\"accessTokenUrl\",\"clientId\":\"clientId\",\"clientSecret\":\"clientSecret\",\"tokenApiAuthentication\":\"header\",\"type\":\"oauth-client\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\",\"id\":\"kt9-j8b-s5x\"},{\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"name\":\"request is sent\",\"request\":{\"basicAuth\":{\"accessTokenUrl\":\"accessTokenUrl\",\"password\":\"password\",\"tokenApiAuthentication\":\"header\",\"type\":\"oauth-rop\",\"username\":\"username\"},\"method\":\"GET\",\"url\":\"https://httpbin.org/status/200\"},\"subtype\":\"http\",\"id\":\"ump-bpw-fa4\"}]},\"message\":\"BDD test payload: synthetics_api_test_multi_step_with_every_type_of_basic_auth.json\",\"options\":{\"tick_every\":60},\"locations\":[\"aws:us-east-2\"],\"subtype\":\"multi\",\"created_by\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"},\"deleted_at\":null,\"monitor_id\":148635778,\"org_id\":321813,\"modified_by\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 663,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2024-07-05T12:58:17.918Z",
61+
"time": 744
62+
},
63+
{
64+
"_id": "98e96e8aa4ad08ac8aae4b7c279ce4f0",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 30,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 568,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "POST",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"public_ids\":[\"56p-u4n-28g\"]}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete"
92+
},
93+
"response": {
94+
"bodySize": 96,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 96,
98+
"text": "{\"deleted_tests\":[{\"public_id\":\"56p-u4n-28g\",\"deleted_at\":\"2024-07-05T12:58:19.277853+00:00\"}]}\n"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 662,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 200,
111+
"statusText": "OK"
112+
},
113+
"startedDateTime": "2024-07-05T12:58:18.673Z",
114+
"time": 956
115+
}
116+
],
117+
"pages": [],
118+
"version": "1.2"
119+
}
120+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-06-24T19:47:12.909Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Security Monitoring/Convert a rule from JSON to Terraform returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "20e4dd5b7315ecf5a5ead4ea85ff50dc",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 432,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 616,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Convert_a_rule_from_JSON_to_Terraform_returns_OK_response-1719258432\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metric\":\"\",\"query\":\"@test:true\"}],\"tags\":[],\"type\":\"log_detection\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/rules/convert"
39+
},
40+
"response": {
41+
"bodySize": 747,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 747,
45+
"text": "{\"terraformContent\":\"resource \\\"datadog_security_monitoring_rule\\\" \\\"test-convert_a_rule_from_json_to_terraform_returns_ok_response-1719258432\\\" {\\n\\tname = \\\"Test-Convert_a_rule_from_JSON_to_Terraform_returns_OK_response-1719258432\\\"\\n\\tenabled = true\\n\\tquery {\\n\\t\\tquery = \\\"@test:true\\\"\\n\\t\\tgroup_by_fields = []\\n\\t\\tdistinct_fields = []\\n\\t\\taggregation = \\\"count\\\"\\n\\t\\tname = \\\"\\\"\\n\\t}\\n\\toptions {\\n\\t\\tkeep_alive = 3600\\n\\t\\tmax_signal_duration = 86400\\n\\t\\tdetection_method = \\\"threshold\\\"\\n\\t\\tevaluation_window = 900\\n\\t}\\n\\tcase {\\n\\t\\tname = \\\"\\\"\\n\\t\\tstatus = \\\"info\\\"\\n\\t\\tnotifications = []\\n\\t\\tcondition = \\\"a > 0\\\"\\n\\t}\\n\\tmessage = \\\"Test rule\\\"\\n\\ttags = []\\n\\thas_extended_title = false\\n\\ttype = \\\"log_detection\\\"\\n}\\n\"}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 654,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2024-06-24T19:47:12.919Z",
61+
"time": 160
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-06-24T19:55:06.421Z"

0 commit comments

Comments
 (0)