Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,124 changes: 1,039 additions & 85 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions examples/v2/csm-settings/GetCSMAgentlessHostFacetInfo.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Get agentless host facet info returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_csm_agentless_host_facet_info".to_sym] = true
end
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
p api_instance.get_csm_agentless_host_facet_info("cloud_provider")
8 changes: 8 additions & 0 deletions examples/v2/csm-settings/GetCSMUnifiedHostFacetInfo.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Get unified host facet info returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_csm_unified_host_facet_info".to_sym] = true
end
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
p api_instance.get_csm_unified_host_facet_info("cloud_provider")
8 changes: 8 additions & 0 deletions examples/v2/csm-settings/ListCSMAgentlessHostFacets.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List agentless host facets returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_csm_agentless_host_facets".to_sym] = true
end
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
p api_instance.list_csm_agentless_host_facets()
8 changes: 8 additions & 0 deletions examples/v2/csm-settings/ListCSMAgentlessHosts.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List agentless hosts returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_csm_agentless_hosts".to_sym] = true
end
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
p api_instance.list_csm_agentless_hosts()
8 changes: 8 additions & 0 deletions examples/v2/csm-settings/ListCSMUnifiedHostFacets.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List unified host facets returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_csm_unified_host_facets".to_sym] = true
end
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
p api_instance.list_csm_unified_host_facets()
8 changes: 8 additions & 0 deletions examples/v2/csm-settings/ListCSMUnifiedHosts.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List unified hosts returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_csm_unified_hosts".to_sym] = true
end
api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new
p api_instance.list_csm_unified_hosts()
20 changes: 20 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,26 @@
"query" => "String",
"order_direction" => "OrderDirection",
},
"v2.ListCSMAgentlessHosts" => {
"page" => "Integer",
"size" => "Integer",
"query" => "String",
},
"v2.GetCSMAgentlessHostFacetInfo" => {
"facet" => "String",
"search" => "String",
"query" => "String",
},
"v2.ListCSMUnifiedHosts" => {
"page" => "Integer",
"size" => "Integer",
"query" => "String",
},
"v2.GetCSMUnifiedHostFacetInfo" => {
"facet" => "String",
"search" => "String",
"query" => "String",
},
"v2.DeleteDashboardListItems" => {
"dashboard_list_id" => "Integer",
"body" => "DashboardListDeleteItemsRequest",
Expand Down
85 changes: 85 additions & 0 deletions features/v2/csm_settings.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
@endpoint(csm-settings) @endpoint(csm-settings-v2)
Feature: CSM Settings
Datadog Cloud Security Management (CSM) Settings APIs allow you to list
and filter your cloud hosts monitored by CSM, covering both agentless and
agent-based discovery. For more information, see [Cloud Security Managemen
t](https://docs.datadoghq.com/security/cloud_security_management).

Background:
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "CSMSettings" API

@generated @skip @team:DataDog/k9-misconfigs
Scenario: Get agentless host facet info returns "Bad Request" response
Given operation "GetCSMAgentlessHostFacetInfo" enabled
And new "GetCSMAgentlessHostFacetInfo" request
And request contains "facet" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/k9-misconfigs
Scenario: Get agentless host facet info returns "OK" response
Given operation "GetCSMAgentlessHostFacetInfo" enabled
And new "GetCSMAgentlessHostFacetInfo" request
And request contains "facet" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/k9-misconfigs
Scenario: Get unified host facet info returns "Bad Request" response
Given operation "GetCSMUnifiedHostFacetInfo" enabled
And new "GetCSMUnifiedHostFacetInfo" request
And request contains "facet" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/k9-misconfigs
Scenario: Get unified host facet info returns "OK" response
Given operation "GetCSMUnifiedHostFacetInfo" enabled
And new "GetCSMUnifiedHostFacetInfo" request
And request contains "facet" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/k9-misconfigs
Scenario: List agentless host facets returns "OK" response
Given operation "ListCSMAgentlessHostFacets" enabled
And new "ListCSMAgentlessHostFacets" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/k9-misconfigs
Scenario: List agentless hosts returns "Bad Request" response
Given operation "ListCSMAgentlessHosts" enabled
And new "ListCSMAgentlessHosts" request
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/k9-misconfigs
Scenario: List agentless hosts returns "OK" response
Given operation "ListCSMAgentlessHosts" enabled
And new "ListCSMAgentlessHosts" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/k9-misconfigs
Scenario: List unified host facets returns "OK" response
Given operation "ListCSMUnifiedHostFacets" enabled
And new "ListCSMUnifiedHostFacets" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/k9-misconfigs
Scenario: List unified hosts returns "Bad Request" response
Given operation "ListCSMUnifiedHosts" enabled
And new "ListCSMUnifiedHosts" request
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/k9-misconfigs
Scenario: List unified hosts returns "OK" response
Given operation "ListCSMUnifiedHosts" enabled
And new "ListCSMUnifiedHosts" request
When the request is sent
Then the response status is 200 OK
36 changes: 36 additions & 0 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2031,6 +2031,42 @@
"type": "safe"
}
},
"ListCSMAgentlessHosts": {
"tag": "CSM Settings",
"undo": {
"type": "safe"
}
},
"GetCSMAgentlessHostFacetInfo": {
"tag": "CSM Settings",
"undo": {
"type": "safe"
}
},
"ListCSMAgentlessHostFacets": {
"tag": "CSM Settings",
"undo": {
"type": "safe"
}
},
"ListCSMUnifiedHosts": {
"tag": "CSM Settings",
"undo": {
"type": "safe"
}
},
"GetCSMUnifiedHostFacetInfo": {
"tag": "CSM Settings",
"undo": {
"type": "safe"
}
},
"ListCSMUnifiedHostFacets": {
"tag": "CSM Settings",
"undo": {
"type": "safe"
}
},
"GetCurrentUser": {
"tag": "Users",
"undo": {
Expand Down
6 changes: 6 additions & 0 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ def initialize
"v2.list_cost_tag_metadata_months": false,
"v2.list_cost_tag_metadata_orchestrators": false,
"v2.search_cost_recommendations": false,
"v2.get_csm_agentless_host_facet_info": false,
"v2.get_csm_unified_host_facet_info": false,
"v2.list_csm_agentless_host_facets": false,
"v2.list_csm_agentless_hosts": false,
"v2.list_csm_unified_host_facets": false,
"v2.list_csm_unified_hosts": false,
"v2.create_dashboard_secure_embed": false,
"v2.delete_dashboard_secure_embed": false,
"v2.get_dashboard_secure_embed": false,
Expand Down
28 changes: 28 additions & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2507,20 +2507,46 @@ def overrides
"v2.create_workflow_response" => "CreateWorkflowResponse",
"v2.creator" => "Creator",
"v2.csm_agent_data" => "CsmAgentData",
"v2.csm_agentless_host_attributes" => "CsmAgentlessHostAttributes",
"v2.csm_agentless_host_data" => "CsmAgentlessHostData",
"v2.csm_agentless_host_facet_attributes" => "CsmAgentlessHostFacetAttributes",
"v2.csm_agentless_host_facet_data" => "CsmAgentlessHostFacetData",
"v2.csm_agentless_host_facets_response" => "CsmAgentlessHostFacetsResponse",
"v2.csm_agentless_host_facet_type" => "CsmAgentlessHostFacetType",
"v2.csm_agentless_host_resource_type" => "CsmAgentlessHostResourceType",
"v2.csm_agentless_hosts_response" => "CsmAgentlessHostsResponse",
"v2.csm_agentless_host_type" => "CsmAgentlessHostType",
"v2.csm_agents_attributes" => "CsmAgentsAttributes",
"v2.csm_agents_metadata" => "CSMAgentsMetadata",
"v2.csm_agents_response" => "CsmAgentsResponse",
"v2.csm_agents_type" => "CSMAgentsType",
"v2.csm_cloud_accounts_coverage_analysis_attributes" => "CsmCloudAccountsCoverageAnalysisAttributes",
"v2.csm_cloud_accounts_coverage_analysis_data" => "CsmCloudAccountsCoverageAnalysisData",
"v2.csm_cloud_accounts_coverage_analysis_response" => "CsmCloudAccountsCoverageAnalysisResponse",
"v2.csm_cloud_provider" => "CsmCloudProvider",
"v2.csm_coverage_analysis" => "CsmCoverageAnalysis",
"v2.csm_facet_info_type" => "CsmFacetInfoType",
"v2.csm_host_facet_info_attributes" => "CsmHostFacetInfoAttributes",
"v2.csm_host_facet_info_data" => "CsmHostFacetInfoData",
"v2.csm_host_facet_info_item" => "CsmHostFacetInfoItem",
"v2.csm_host_facet_info_meta" => "CsmHostFacetInfoMeta",
"v2.csm_host_facet_info_response" => "CsmHostFacetInfoResponse",
"v2.csm_hosts_and_containers_coverage_analysis_attributes" => "CsmHostsAndContainersCoverageAnalysisAttributes",
"v2.csm_hosts_and_containers_coverage_analysis_data" => "CsmHostsAndContainersCoverageAnalysisData",
"v2.csm_hosts_and_containers_coverage_analysis_response" => "CsmHostsAndContainersCoverageAnalysisResponse",
"v2.csm_serverless_coverage_analysis_attributes" => "CsmServerlessCoverageAnalysisAttributes",
"v2.csm_serverless_coverage_analysis_data" => "CsmServerlessCoverageAnalysisData",
"v2.csm_serverless_coverage_analysis_response" => "CsmServerlessCoverageAnalysisResponse",
"v2.csm_settings_meta" => "CsmSettingsMeta",
"v2.csm_unified_host_attributes" => "CsmUnifiedHostAttributes",
"v2.csm_unified_host_data" => "CsmUnifiedHostData",
"v2.csm_unified_host_facet_data" => "CsmUnifiedHostFacetData",
"v2.csm_unified_host_facets_response" => "CsmUnifiedHostFacetsResponse",
"v2.csm_unified_host_facet_type" => "CsmUnifiedHostFacetType",
"v2.csm_unified_hosts_meta" => "CsmUnifiedHostsMeta",
"v2.csm_unified_host_source" => "CsmUnifiedHostSource",
"v2.csm_unified_hosts_response" => "CsmUnifiedHostsResponse",
"v2.csm_unified_host_type" => "CsmUnifiedHostType",
"v2.custom_attribute_config" => "CustomAttributeConfig",
"v2.custom_attribute_config_attributes_create" => "CustomAttributeConfigAttributesCreate",
"v2.custom_attribute_config_create" => "CustomAttributeConfigCreate",
Expand Down Expand Up @@ -4620,6 +4646,7 @@ def overrides
"v2.notification_rule" => "NotificationRule",
"v2.notification_rule_attributes" => "NotificationRuleAttributes",
"v2.notification_rule_response" => "NotificationRuleResponse",
"v2.notification_rules_list_response" => "NotificationRulesListResponse",
"v2.notification_rules_type" => "NotificationRulesType",
"v2.notion_api_key" => "NotionAPIKey",
"v2.notion_api_key_type" => "NotionAPIKeyType",
Expand Down Expand Up @@ -7484,6 +7511,7 @@ def overrides
"v2.containers_api" => "ContainersAPI",
"v2.csm_agents_api" => "CSMAgentsAPI",
"v2.csm_coverage_analysis_api" => "CSMCoverageAnalysisAPI",
"v2.csm_settings_api" => "CSMSettingsAPI",
"v2.csm_threats_api" => "CSMThreatsAPI",
"v2.customer_org_api" => "CustomerOrgAPI",
"v2.dashboard_lists_api" => "DashboardListsAPI",
Expand Down
Loading
Loading