Skip to content

Commit f8c261d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 19ee7e6 of spec repo (DataDog#3469)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 42f8411 commit f8c261d

39 files changed

Lines changed: 4961 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 897 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get agentless host facet info returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_csm_agentless_host_facet_info".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
8+
p api_instance.get_csm_agentless_host_facet_info("cloud_provider")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get unified host facet info returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_csm_unified_host_facet_info".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
8+
p api_instance.get_csm_unified_host_facet_info("cloud_provider")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List agentless host facets returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_csm_agentless_host_facets".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
8+
p api_instance.list_csm_agentless_host_facets()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List agentless hosts returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_csm_agentless_hosts".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
8+
p api_instance.list_csm_agentless_hosts()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List unified host facets returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_csm_unified_host_facets".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
8+
p api_instance.list_csm_unified_host_facets()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List unified hosts returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_csm_unified_hosts".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
8+
p api_instance.list_csm_unified_hosts()

features/scenarios_model_mapping.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,6 +2855,26 @@
28552855
"query" => "String",
28562856
"order_direction" => "OrderDirection",
28572857
},
2858+
"v2.ListCSMAgentlessHosts" => {
2859+
"page" => "Integer",
2860+
"size" => "Integer",
2861+
"query" => "String",
2862+
},
2863+
"v2.GetCSMAgentlessHostFacetInfo" => {
2864+
"facet" => "String",
2865+
"search" => "String",
2866+
"query" => "String",
2867+
},
2868+
"v2.ListCSMUnifiedHosts" => {
2869+
"page" => "Integer",
2870+
"size" => "Integer",
2871+
"query" => "String",
2872+
},
2873+
"v2.GetCSMUnifiedHostFacetInfo" => {
2874+
"facet" => "String",
2875+
"search" => "String",
2876+
"query" => "String",
2877+
},
28582878
"v2.DeleteDashboardListItems" => {
28592879
"dashboard_list_id" => "Integer",
28602880
"body" => "DashboardListDeleteItemsRequest",

features/v2/csm_settings.feature

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
@endpoint(csm-settings) @endpoint(csm-settings-v2)
2+
Feature: CSM Settings
3+
Datadog Cloud Security Management (CSM) Settings APIs allow you to list
4+
and filter your cloud hosts monitored by CSM, covering both agentless and
5+
agent-based discovery. For more information, see [Cloud Security Managemen
6+
t](https://docs.datadoghq.com/security/cloud_security_management).
7+
8+
Background:
9+
Given a valid "apiKeyAuth" key in the system
10+
And a valid "appKeyAuth" key in the system
11+
And an instance of "CSMSettings" API
12+
13+
@generated @skip @team:DataDog/k9-misconfigs
14+
Scenario: Get agentless host facet info returns "Bad Request" response
15+
Given operation "GetCSMAgentlessHostFacetInfo" enabled
16+
And new "GetCSMAgentlessHostFacetInfo" request
17+
And request contains "facet" parameter from "REPLACE.ME"
18+
When the request is sent
19+
Then the response status is 400 Bad Request
20+
21+
@generated @skip @team:DataDog/k9-misconfigs
22+
Scenario: Get agentless host facet info returns "OK" response
23+
Given operation "GetCSMAgentlessHostFacetInfo" enabled
24+
And new "GetCSMAgentlessHostFacetInfo" request
25+
And request contains "facet" parameter from "REPLACE.ME"
26+
When the request is sent
27+
Then the response status is 200 OK
28+
29+
@generated @skip @team:DataDog/k9-misconfigs
30+
Scenario: Get unified host facet info returns "Bad Request" response
31+
Given operation "GetCSMUnifiedHostFacetInfo" enabled
32+
And new "GetCSMUnifiedHostFacetInfo" request
33+
And request contains "facet" parameter from "REPLACE.ME"
34+
When the request is sent
35+
Then the response status is 400 Bad Request
36+
37+
@generated @skip @team:DataDog/k9-misconfigs
38+
Scenario: Get unified host facet info returns "OK" response
39+
Given operation "GetCSMUnifiedHostFacetInfo" enabled
40+
And new "GetCSMUnifiedHostFacetInfo" request
41+
And request contains "facet" parameter from "REPLACE.ME"
42+
When the request is sent
43+
Then the response status is 200 OK
44+
45+
@generated @skip @team:DataDog/k9-misconfigs
46+
Scenario: List agentless host facets returns "OK" response
47+
Given operation "ListCSMAgentlessHostFacets" enabled
48+
And new "ListCSMAgentlessHostFacets" request
49+
When the request is sent
50+
Then the response status is 200 OK
51+
52+
@generated @skip @team:DataDog/k9-misconfigs
53+
Scenario: List agentless hosts returns "Bad Request" response
54+
Given operation "ListCSMAgentlessHosts" enabled
55+
And new "ListCSMAgentlessHosts" request
56+
When the request is sent
57+
Then the response status is 400 Bad Request
58+
59+
@generated @skip @team:DataDog/k9-misconfigs
60+
Scenario: List agentless hosts returns "OK" response
61+
Given operation "ListCSMAgentlessHosts" enabled
62+
And new "ListCSMAgentlessHosts" request
63+
When the request is sent
64+
Then the response status is 200 OK
65+
66+
@generated @skip @team:DataDog/k9-misconfigs
67+
Scenario: List unified host facets returns "OK" response
68+
Given operation "ListCSMUnifiedHostFacets" enabled
69+
And new "ListCSMUnifiedHostFacets" request
70+
When the request is sent
71+
Then the response status is 200 OK
72+
73+
@generated @skip @team:DataDog/k9-misconfigs
74+
Scenario: List unified hosts returns "Bad Request" response
75+
Given operation "ListCSMUnifiedHosts" enabled
76+
And new "ListCSMUnifiedHosts" request
77+
When the request is sent
78+
Then the response status is 400 Bad Request
79+
80+
@generated @skip @team:DataDog/k9-misconfigs
81+
Scenario: List unified hosts returns "OK" response
82+
Given operation "ListCSMUnifiedHosts" enabled
83+
And new "ListCSMUnifiedHosts" request
84+
When the request is sent
85+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,6 +2031,42 @@
20312031
"type": "safe"
20322032
}
20332033
},
2034+
"ListCSMAgentlessHosts": {
2035+
"tag": "CSM Settings",
2036+
"undo": {
2037+
"type": "safe"
2038+
}
2039+
},
2040+
"GetCSMAgentlessHostFacetInfo": {
2041+
"tag": "CSM Settings",
2042+
"undo": {
2043+
"type": "safe"
2044+
}
2045+
},
2046+
"ListCSMAgentlessHostFacets": {
2047+
"tag": "CSM Settings",
2048+
"undo": {
2049+
"type": "safe"
2050+
}
2051+
},
2052+
"ListCSMUnifiedHosts": {
2053+
"tag": "CSM Settings",
2054+
"undo": {
2055+
"type": "safe"
2056+
}
2057+
},
2058+
"GetCSMUnifiedHostFacetInfo": {
2059+
"tag": "CSM Settings",
2060+
"undo": {
2061+
"type": "safe"
2062+
}
2063+
},
2064+
"ListCSMUnifiedHostFacets": {
2065+
"tag": "CSM Settings",
2066+
"undo": {
2067+
"type": "safe"
2068+
}
2069+
},
20342070
"GetCurrentUser": {
20352071
"tag": "Users",
20362072
"undo": {

0 commit comments

Comments
 (0)