Skip to content

Commit 3c6d3a7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ccbf738c of spec repo
1 parent ac9e634 commit 3c6d3a7

File tree

10 files changed

+634
-53
lines changed

10 files changed

+634
-53
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-13 18:28:06.332663",
8-
"spec_repo_commit": "3517c947"
7+
"regenerated": "2025-01-13 21:37:26.672093",
8+
"spec_repo_commit": "ccbf738c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-13 18:28:06.347841",
13-
"spec_repo_commit": "3517c947"
12+
"regenerated": "2025-01-13 21:37:26.687197",
13+
"spec_repo_commit": "ccbf738c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,27 @@ components:
213213
required: true
214214
schema:
215215
type: string
216+
CustomFrameworkHandle:
217+
description: The framework handle.
218+
in: path
219+
name: handle
220+
required: true
221+
schema:
222+
type: string
223+
CustomFrameworkOrgID:
224+
description: The ID of the organization.
225+
in: path
226+
name: org_id
227+
required: true
228+
schema:
229+
type: string
230+
CustomFrameworkVersion:
231+
description: The framework version.
232+
in: path
233+
name: version
234+
required: true
235+
schema:
236+
type: string
216237
EntityID:
217238
description: UUID or Entity Ref.
218239
in: path
@@ -8375,6 +8396,54 @@ components:
83758396
$ref: '#/components/schemas/CustomDestinationResponseDefinition'
83768397
type: array
83778398
type: object
8399+
CustomFrameworkMetadata:
8400+
description: Response object for an organization's custom frameworks.
8401+
properties:
8402+
created_at:
8403+
description: Framework Creation Date
8404+
format: int64
8405+
type: integer
8406+
created_by:
8407+
description: Framework Creator
8408+
type: string
8409+
description:
8410+
description: Framework Description
8411+
type: string
8412+
handle:
8413+
description: Framework Handle
8414+
example: ''
8415+
type: string
8416+
icon_url:
8417+
description: Framework Icon URL
8418+
type: string
8419+
id:
8420+
description: Custom Framework ID
8421+
example: ''
8422+
type: string
8423+
name:
8424+
description: Framework Name
8425+
example: ''
8426+
type: string
8427+
org_id:
8428+
description: Org ID
8429+
example: 0
8430+
format: int64
8431+
type: integer
8432+
updated_at:
8433+
description: Framework Update Date
8434+
format: int64
8435+
type: integer
8436+
version:
8437+
description: Framework Version
8438+
example: ''
8439+
type: string
8440+
required:
8441+
- id
8442+
- org_id
8443+
- handle
8444+
- version
8445+
- name
8446+
type: object
83788447
DORADeploymentRequest:
83798448
description: Request to create a DORA deployment event.
83808449
properties:
@@ -9015,6 +9084,12 @@ components:
90159084
type: string
90169085
x-enum-varnames:
90179086
- APPDEFINITIONS
9087+
DeleteCustomFrameworkResponse:
9088+
description: Delete a custom framework.
9089+
properties:
9090+
data:
9091+
$ref: '#/components/schemas/CustomFrameworkMetadata'
9092+
type: object
90189093
DependencyLocation:
90199094
description: Static library vulnerability location.
90209095
properties:
@@ -40135,6 +40210,39 @@ paths:
4013540210
operator: OR
4013640211
permissions:
4013740212
- org_management
40213+
/api/v2/orgs/{org_id}/cloud_security_management/custom_frameworks/{handle}/{version}:
40214+
get:
40215+
description: Delete a custom framework.
40216+
operationId: DeleteCustomFramework
40217+
parameters:
40218+
- $ref: '#/components/parameters/CustomFrameworkOrgID'
40219+
- $ref: '#/components/parameters/CustomFrameworkHandle'
40220+
- $ref: '#/components/parameters/CustomFrameworkVersion'
40221+
responses:
40222+
'200':
40223+
content:
40224+
application/json:
40225+
schema:
40226+
$ref: '#/components/schemas/DeleteCustomFrameworkResponse'
40227+
description: OK
40228+
'400':
40229+
$ref: '#/components/responses/BadRequestResponse'
40230+
'429':
40231+
$ref: '#/components/responses/TooManyRequestsResponse'
40232+
'500':
40233+
$ref: '#/components/responses/BadRequestResponse'
40234+
security:
40235+
- apiKeyAuth: []
40236+
appKeyAuth: []
40237+
- AuthZ:
40238+
- security_monitoring_rules_read
40239+
summary: Delete a custom framework
40240+
tags:
40241+
- Security Monitoring
40242+
x-permission:
40243+
operator: OR
40244+
permissions:
40245+
- security_monitoring_rules_read
4013840246
/api/v2/permissions:
4013940247
get:
4014040248
description: Returns a list of all permissions, including name, description,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a custom framework returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
5+
p api_instance.delete_custom_framework("org_id", "handle", "version")

features/scenarios_model_mapping.rb

Lines changed: 54 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,55 +1726,10 @@
17261726
"v2.UploadIdPMetadata" => {
17271727
"idp_file" => "File",
17281728
},
1729-
"v2.ListRoles" => {
1730-
"page_size" => "Integer",
1731-
"page_number" => "Integer",
1732-
"sort" => "RolesSort",
1733-
"filter" => "String",
1734-
"filter_id" => "String",
1735-
},
1736-
"v2.CreateRole" => {
1737-
"body" => "RoleCreateRequest",
1738-
},
1739-
"v2.DeleteRole" => {
1740-
"role_id" => "String",
1741-
},
1742-
"v2.GetRole" => {
1743-
"role_id" => "String",
1744-
},
1745-
"v2.UpdateRole" => {
1746-
"role_id" => "String",
1747-
"body" => "RoleUpdateRequest",
1748-
},
1749-
"v2.CloneRole" => {
1750-
"role_id" => "String",
1751-
"body" => "RoleCloneRequest",
1752-
},
1753-
"v2.RemovePermissionFromRole" => {
1754-
"role_id" => "String",
1755-
"body" => "RelationshipToPermission",
1756-
},
1757-
"v2.ListRolePermissions" => {
1758-
"role_id" => "String",
1759-
},
1760-
"v2.AddPermissionToRole" => {
1761-
"role_id" => "String",
1762-
"body" => "RelationshipToPermission",
1763-
},
1764-
"v2.RemoveUserFromRole" => {
1765-
"role_id" => "String",
1766-
"body" => "RelationshipToUser",
1767-
},
1768-
"v2.ListRoleUsers" => {
1769-
"role_id" => "String",
1770-
"page_size" => "Integer",
1771-
"page_number" => "Integer",
1772-
"sort" => "String",
1773-
"filter" => "String",
1774-
},
1775-
"v2.AddUserToRole" => {
1776-
"role_id" => "String",
1777-
"body" => "RelationshipToUser",
1729+
"v2.DeleteCustomFramework" => {
1730+
"org_id" => "String",
1731+
"handle" => "String",
1732+
"version" => "String",
17781733
},
17791734
"v2.ListFindings" => {
17801735
"page_limit" => "Integer",
@@ -1964,6 +1919,56 @@
19641919
"v2.CancelHistoricalJob" => {
19651920
"job_id" => "String",
19661921
},
1922+
"v2.ListRoles" => {
1923+
"page_size" => "Integer",
1924+
"page_number" => "Integer",
1925+
"sort" => "RolesSort",
1926+
"filter" => "String",
1927+
"filter_id" => "String",
1928+
},
1929+
"v2.CreateRole" => {
1930+
"body" => "RoleCreateRequest",
1931+
},
1932+
"v2.DeleteRole" => {
1933+
"role_id" => "String",
1934+
},
1935+
"v2.GetRole" => {
1936+
"role_id" => "String",
1937+
},
1938+
"v2.UpdateRole" => {
1939+
"role_id" => "String",
1940+
"body" => "RoleUpdateRequest",
1941+
},
1942+
"v2.CloneRole" => {
1943+
"role_id" => "String",
1944+
"body" => "RoleCloneRequest",
1945+
},
1946+
"v2.RemovePermissionFromRole" => {
1947+
"role_id" => "String",
1948+
"body" => "RelationshipToPermission",
1949+
},
1950+
"v2.ListRolePermissions" => {
1951+
"role_id" => "String",
1952+
},
1953+
"v2.AddPermissionToRole" => {
1954+
"role_id" => "String",
1955+
"body" => "RelationshipToPermission",
1956+
},
1957+
"v2.RemoveUserFromRole" => {
1958+
"role_id" => "String",
1959+
"body" => "RelationshipToUser",
1960+
},
1961+
"v2.ListRoleUsers" => {
1962+
"role_id" => "String",
1963+
"page_size" => "Integer",
1964+
"page_number" => "Integer",
1965+
"sort" => "String",
1966+
"filter" => "String",
1967+
},
1968+
"v2.AddUserToRole" => {
1969+
"role_id" => "String",
1970+
"body" => "RelationshipToUser",
1971+
},
19671972
"v2.ListPowerpacks" => {
19681973
"page_limit" => "Integer",
19691974
"page_offset" => "Integer",

features/v2/security_monitoring.feature

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,24 @@ Feature: Security Monitoring
296296
And the response "data.attributes.rule_query" is equal to "type:log_detection source:cloudtrail"
297297
And the response "data.attributes.data_exclusion_query" is equal to "account_id:12345"
298298

299+
@generated @skip @team:DataDog/k9-cloud-security-platform
300+
Scenario: Delete a custom framework returns "Bad Request" response
301+
Given new "DeleteCustomFramework" request
302+
And request contains "org_id" parameter from "REPLACE.ME"
303+
And request contains "handle" parameter from "REPLACE.ME"
304+
And request contains "version" parameter from "REPLACE.ME"
305+
When the request is sent
306+
Then the response status is 400 Bad Request
307+
308+
@generated @skip @team:DataDog/k9-cloud-security-platform
309+
Scenario: Delete a custom framework returns "OK" response
310+
Given new "DeleteCustomFramework" request
311+
And request contains "org_id" parameter from "REPLACE.ME"
312+
And request contains "handle" parameter from "REPLACE.ME"
313+
And request contains "version" parameter from "REPLACE.ME"
314+
When the request is sent
315+
Then the response status is 200 OK
316+
299317
@skip @team:DataDog/k9-cloud-security-platform
300318
Scenario: Delete a non existing rule returns "Not Found" response
301319
Given new "DeleteSecurityMonitoringRule" request

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,12 @@
16511651
"type": "idempotent"
16521652
}
16531653
},
1654+
"DeleteCustomFramework": {
1655+
"tag": "Security Monitoring",
1656+
"undo": {
1657+
"type": "safe"
1658+
}
1659+
},
16541660
"ListPermissions": {
16551661
"tag": "Roles",
16561662
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,7 @@ def overrides
13731373
"v2.custom_destination_update_request" => "CustomDestinationUpdateRequest",
13741374
"v2.custom_destination_update_request_attributes" => "CustomDestinationUpdateRequestAttributes",
13751375
"v2.custom_destination_update_request_definition" => "CustomDestinationUpdateRequestDefinition",
1376+
"v2.custom_framework_metadata" => "CustomFrameworkMetadata",
13761377
"v2.cvss" => "CVSS",
13771378
"v2.dashboard_list_add_items_request" => "DashboardListAddItemsRequest",
13781379
"v2.dashboard_list_add_items_response" => "DashboardListAddItemsResponse",
@@ -1398,6 +1399,7 @@ def overrides
13981399
"v2.delete_apps_response" => "DeleteAppsResponse",
13991400
"v2.delete_apps_response_data_items" => "DeleteAppsResponseDataItems",
14001401
"v2.delete_apps_response_data_items_type" => "DeleteAppsResponseDataItemsType",
1402+
"v2.delete_custom_framework_response" => "DeleteCustomFrameworkResponse",
14011403
"v2.dependency_location" => "DependencyLocation",
14021404
"v2.deploy_app_response" => "DeployAppResponse",
14031405
"v2.deploy_app_response_data" => "DeployAppResponseData",

0 commit comments

Comments
 (0)