Skip to content

Commit d86ae74

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing request body examples for 15 operations [AAWF-1196] (#3243)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 95ff630 commit d86ae74

9 files changed

Lines changed: 341 additions & 92 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 319 additions & 70 deletions
Large diffs are not rendered by default.

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def activate_content_pack(content_pack_id, opts = {})
3333

3434
# Activate content pack.
3535
#
36-
# Activate a Cloud SIEM content pack. This operation configures the necessary
36+
# Activate a security monitoring content pack. This operation configures the necessary
3737
# log filters or security filters depending on the pricing model and updates the content
3838
# pack activation state.
3939
#
40-
# @param content_pack_id [String] The ID of the content pack to activate (for example, `aws-cloudtrail`).
40+
# @param content_pack_id [String] The ID of the content pack to activate.
4141
# @param opts [Hash] the optional parameters
4242
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4343
def activate_content_pack_with_http_info(content_pack_id, opts = {})
@@ -76,7 +76,7 @@ def activate_content_pack_with_http_info(content_pack_id, opts = {})
7676
return_type = opts[:debug_return_type]
7777

7878
# auth_names
79-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
79+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
8080

8181
new_options = opts.merge(
8282
:operation => :activate_content_pack,
@@ -1587,10 +1587,10 @@ def deactivate_content_pack(content_pack_id, opts = {})
15871587

15881588
# Deactivate content pack.
15891589
#
1590-
# Deactivate a Cloud SIEM content pack. This operation removes the content pack's
1590+
# Deactivate a security monitoring content pack. This operation removes the content pack's
15911591
# configuration from log filters or security filters and updates the content pack activation state.
15921592
#
1593-
# @param content_pack_id [String] The ID of the content pack to deactivate (for example, `aws-cloudtrail`).
1593+
# @param content_pack_id [String] The ID of the content pack to deactivate.
15941594
# @param opts [Hash] the optional parameters
15951595
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
15961596
def deactivate_content_pack_with_http_info(content_pack_id, opts = {})
@@ -1629,7 +1629,7 @@ def deactivate_content_pack_with_http_info(content_pack_id, opts = {})
16291629
return_type = opts[:debug_return_type]
16301630

16311631
# auth_names
1632-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
1632+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
16331633

16341634
new_options = opts.merge(
16351635
:operation => :deactivate_content_pack,
@@ -2629,8 +2629,9 @@ def get_content_packs_states(opts = {})
26292629

26302630
# Get content pack states.
26312631
#
2632-
# Get the activation state, integration status, and log collection status
2633-
# for all Cloud SIEM content packs.
2632+
# Get the activation and configuration states for all security monitoring content packs.
2633+
# This endpoint returns status information about each content pack including activation state,
2634+
# integration status, and log collection status.
26342635
#
26352636
# @param opts [Hash] the optional parameters
26362637
# @return [Array<(SecurityMonitoringContentPackStatesResponse, Integer, Hash)>] SecurityMonitoringContentPackStatesResponse data, response status code and response headers
@@ -2666,7 +2667,7 @@ def get_content_packs_states_with_http_info(opts = {})
26662667
return_type = opts[:debug_return_type] || 'SecurityMonitoringContentPackStatesResponse'
26672668

26682669
# auth_names
2669-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
2670+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
26702671

26712672
new_options = opts.merge(
26722673
:operation => :get_content_packs_states,

lib/datadog_api_client/v2/models/security_monitoring_content_pack_activation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The activation status of a content pack.
20+
# The activation status of a content pack
2121
class SecurityMonitoringContentPackActivation
2222
include BaseEnumModel
2323

lib/datadog_api_client/v2/models/security_monitoring_content_pack_integration_status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The installation status of the related integration.
20+
# The installation status of the related integration
2121
class SecurityMonitoringContentPackIntegrationStatus
2222
include BaseEnumModel
2323

lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_attributes.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,22 @@ class SecurityMonitoringContentPackStateAttributes
2424
# Whether the cloud SIEM index configuration is incorrect (only applies to certain pricing models)
2525
attr_reader :cloud_siem_index_incorrect
2626

27-
# The activation status of a content pack.
27+
# The activation status of a content pack
2828
attr_reader :cp_activation
2929

30-
# Whether filters (Security Filters or Index Query depending on the pricing model) are
31-
# present and correctly configured to route logs into Cloud SIEM.
30+
# Whether filters (Security Filters or Index Query depending on the pricing model) are configured for logs
3231
attr_reader :filters_configured_for_logs
3332

34-
# The installation status of the related integration.
33+
# The installation status of the related integration
3534
attr_accessor :integration_installed_status
3635

37-
# Timestamp bucket indicating when logs were last collected.
36+
# Timestamp bucket indicating when logs were last collected
3837
attr_reader :logs_last_collected
3938

40-
# Whether logs for this content pack have been seen in any Datadog index within the last 72 hours.
39+
# Whether logs have been seen from any index
4140
attr_reader :logs_seen_from_any_index
4241

43-
# The current operational status of a content pack.
42+
# The current status of a content pack
4443
attr_reader :state
4544

4645
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_meta.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SecurityMonitoringContentPackStateMeta
2424
# Whether the cloud SIEM index configuration is incorrect at the organization level
2525
attr_reader :cloud_siem_index_incorrect
2626

27-
# The Cloud SIEM pricing model (SKU) for the organization.
27+
# The SIEM pricing model (SKU) for the organization
2828
attr_reader :sku
2929

3030
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/security_monitoring_content_pack_status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The current operational status of a content pack.
20+
# The current status of a content pack
2121
class SecurityMonitoringContentPackStatus
2222
include BaseEnumModel
2323

lib/datadog_api_client/v2/models/security_monitoring_content_pack_timestamp_bucket.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Timestamp bucket indicating when logs were last collected.
20+
# Timestamp bucket indicating when logs were last collected
2121
class SecurityMonitoringContentPackTimestampBucket
2222
include BaseEnumModel
2323

lib/datadog_api_client/v2/models/security_monitoring_sku.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The Cloud SIEM pricing model (SKU) for the organization.
20+
# The SIEM pricing model (SKU) for the organization
2121
class SecurityMonitoringSKU
2222
include BaseEnumModel
2323

0 commit comments

Comments
 (0)