Skip to content

Commit 3742625

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fab55767 of spec repo
1 parent a479276 commit 3742625

File tree

12 files changed

+920
-203
lines changed

12 files changed

+920
-203
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": "2025-01-14 15:59:04.025656",
8-
"spec_repo_commit": "0457044b"
7+
"regenerated": "2025-01-14 18:30:14.355195",
8+
"spec_repo_commit": "fab55767"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-14 15:59:04.041492",
13-
"spec_repo_commit": "0457044b"
12+
"regenerated": "2025-01-14 18:30:14.369972",
13+
"spec_repo_commit": "fab55767"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7145,6 +7145,38 @@ components:
71457145
type: string
71467146
x-enum-varnames:
71477147
- APPDEFINITIONS
7148+
CreateCustomFrameworkRequest:
7149+
description: Create a custom framework.
7150+
properties:
7151+
description:
7152+
description: Framework Description
7153+
type: string
7154+
handle:
7155+
description: Framework Handle
7156+
example: ''
7157+
type: string
7158+
icon_url:
7159+
description: Framework Icon URL
7160+
type: string
7161+
name:
7162+
description: Framework Name
7163+
example: ''
7164+
type: string
7165+
requirements:
7166+
description: Framework Requirements
7167+
items:
7168+
$ref: '#/components/schemas/FrameworkRequirement'
7169+
type: array
7170+
version:
7171+
description: Framework Version
7172+
example: ''
7173+
type: string
7174+
required:
7175+
- handle
7176+
- version
7177+
- name
7178+
- requirements
7179+
type: object
71487180
CreateDataDeletionRequestBody:
71497181
description: Object needed to create a data deletion request.
71507182
properties:
@@ -11936,6 +11968,40 @@ components:
1193611968
order:
1193711969
$ref: '#/components/schemas/QuerySortOrder'
1193811970
type: object
11971+
FrameworkControl:
11972+
description: Framework Control.
11973+
properties:
11974+
name:
11975+
description: Control Name.
11976+
example: ''
11977+
type: string
11978+
rule_ids:
11979+
description: Rule IDs.
11980+
example:
11981+
- ''
11982+
items:
11983+
type: string
11984+
type: array
11985+
required:
11986+
- name
11987+
- rule_ids
11988+
type: object
11989+
FrameworkRequirement:
11990+
description: Framework Requirement.
11991+
properties:
11992+
controls:
11993+
description: Requirement Controls.
11994+
items:
11995+
$ref: '#/components/schemas/FrameworkControl'
11996+
type: array
11997+
name:
11998+
description: Requirement Name.
11999+
example: ''
12000+
type: string
12001+
required:
12002+
- name
12003+
- controls
12004+
type: object
1193912005
FullAPIKey:
1194012006
description: Datadog API key.
1194112007
properties:
@@ -33028,6 +33094,40 @@ paths:
3302833094
operator: OR
3302933095
permissions:
3303033096
- ci_visibility_read
33097+
/api/v2/cloud_security_management/custom_frameworks:
33098+
post:
33099+
description: Create a custom framework.
33100+
operationId: CreateCustomFramework
33101+
requestBody:
33102+
content:
33103+
application/json:
33104+
schema:
33105+
$ref: '#/components/schemas/CreateCustomFrameworkRequest'
33106+
required: true
33107+
responses:
33108+
'200':
33109+
description: OK
33110+
'400':
33111+
$ref: '#/components/responses/BadRequestResponse'
33112+
'429':
33113+
$ref: '#/components/responses/TooManyRequestsResponse'
33114+
'500':
33115+
$ref: '#/components/responses/BadRequestResponse'
33116+
security:
33117+
- apiKeyAuth: []
33118+
appKeyAuth: []
33119+
- AuthZ:
33120+
- security_monitoring_rules_read
33121+
- security_monitoring_rules_write
33122+
summary: Create a custom framework
33123+
tags:
33124+
- Security Monitoring
33125+
x-codegen-request-body-name: body
33126+
x-permission:
33127+
operator: AND
33128+
permissions:
33129+
- security_monitoring_rules_read
33130+
- security_monitoring_rules_write
3303133131
/api/v2/container_images:
3303233132
get:
3303333133
description: Get all Container Images for your organization.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Create a custom framework returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateCustomFrameworkRequest.new({
7+
handle: "",
8+
name: "",
9+
requirements: [
10+
DatadogAPIClient::V2::FrameworkRequirement.new({
11+
controls: [
12+
DatadogAPIClient::V2::FrameworkControl.new({
13+
name: "",
14+
rule_ids: [
15+
"",
16+
],
17+
}),
18+
],
19+
name: "",
20+
}),
21+
],
22+
version: "",
23+
})
24+
p api_instance.create_custom_framework(body)

0 commit comments

Comments
 (0)