Skip to content

Commit 77e1394

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 0460aa0 of spec repo (#3510)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6e5accd commit 77e1394

3 files changed

Lines changed: 28 additions & 9 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88816,10 +88816,14 @@ components:
8881688816
enum:
8881788817
- suppressions
8881888818
- critical_assets
88819+
- security_filters
88820+
- rules
8881988821
type: string
8882088822
x-enum-varnames:
8882188823
- SUPPRESSIONS
8882288824
- CRITICAL_ASSETS
88825+
- SECURITY_FILTERS
88826+
- RULES
8882388827
SecurityMonitoringThirdPartyRootQuery:
8882488828
description: A query to be combined with the third party case query.
8882588829
properties:
@@ -177523,8 +177527,9 @@ paths:
177523177527
description: |-
177524177528
Export multiple security monitoring resources to Terraform, packaged as a zip archive.
177525177529
The `resource_type` path parameter specifies the type of resources to export
177526-
and must be one of `suppressions` or `critical_assets`.
177530+
and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
177527177531
A maximum of 1000 resources can be exported in a single request.
177532+
For `rules`, partner rules cannot be exported and return a 400 error.
177528177533
operationId: BulkExportSecurityMonitoringTerraformResources
177529177534
parameters:
177530177535
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
@@ -177569,6 +177574,8 @@ paths:
177569177574
- security_monitoring_suppressions_read
177570177575
- AuthZ:
177571177576
- security_monitoring_rules_read
177577+
- AuthZ:
177578+
- security_monitoring_filters_read
177572177579
summary: Export security monitoring resources to Terraform
177573177580
tags:
177574177581
- Security Monitoring
@@ -177578,13 +177585,14 @@ paths:
177578177585
permissions:
177579177586
- security_monitoring_suppressions_read
177580177587
- security_monitoring_rules_read
177588+
- security_monitoring_filters_read
177581177589
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
177582177590
/api/v2/security_monitoring/terraform/{resource_type}/convert:
177583177591
post:
177584177592
description: |-
177585177593
Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
177586177594
The `resource_type` path parameter specifies the type of resource to convert
177587-
and must be one of `suppressions` or `critical_assets`.
177595+
and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
177588177596
operationId: ConvertSecurityMonitoringTerraformResource
177589177597
parameters:
177590177598
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
@@ -177637,6 +177645,8 @@ paths:
177637177645
- security_monitoring_suppressions_read
177638177646
- AuthZ:
177639177647
- security_monitoring_rules_read
177648+
- AuthZ:
177649+
- security_monitoring_filters_read
177640177650
summary: Convert security monitoring resource to Terraform
177641177651
tags:
177642177652
- Security Monitoring
@@ -177646,13 +177656,15 @@ paths:
177646177656
permissions:
177647177657
- security_monitoring_suppressions_read
177648177658
- security_monitoring_rules_read
177659+
- security_monitoring_filters_read
177649177660
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
177650177661
/api/v2/security_monitoring/terraform/{resource_type}/{resource_id}:
177651177662
get:
177652177663
description: |-
177653177664
Export a security monitoring resource to a Terraform configuration.
177654177665
The `resource_type` path parameter specifies the type of resource to export
177655-
and must be one of `suppressions` or `critical_assets`.
177666+
and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
177667+
For `rules`, partner rules cannot be exported and return a 400 error.
177656177668
operationId: ExportSecurityMonitoringTerraformResource
177657177669
parameters:
177658177670
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
@@ -177687,6 +177699,8 @@ paths:
177687177699
- security_monitoring_suppressions_read
177688177700
- AuthZ:
177689177701
- security_monitoring_rules_read
177702+
- AuthZ:
177703+
- security_monitoring_filters_read
177690177704
summary: Export security monitoring resource to Terraform
177691177705
tags:
177692177706
- Security Monitoring
@@ -177695,6 +177709,7 @@ paths:
177695177709
permissions:
177696177710
- security_monitoring_suppressions_read
177697177711
- security_monitoring_rules_read
177712+
- security_monitoring_filters_read
177698177713
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
177699177714
/api/v2/sensitive-data-scanner/config:
177700177715
get:

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,9 @@ def bulk_export_security_monitoring_terraform_resources(resource_type, body, opt
888888
#
889889
# Export multiple security monitoring resources to Terraform, packaged as a zip archive.
890890
# The `resource_type` path parameter specifies the type of resources to export
891-
# and must be one of `suppressions` or `critical_assets`.
891+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
892892
# A maximum of 1000 resources can be exported in a single request.
893+
# For `rules`, partner rules cannot be exported and return a 400 error.
893894
#
894895
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
895896
# @param body [SecurityMonitoringTerraformBulkExportRequest] The resource IDs to export.
@@ -911,7 +912,7 @@ def bulk_export_security_monitoring_terraform_resources_with_http_info(resource_
911912
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.bulk_export_security_monitoring_terraform_resources"
912913
end
913914
# verify enum value
914-
allowable_values = ['suppressions', 'critical_assets']
915+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
915916
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
916917
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
917918
end
@@ -1262,7 +1263,7 @@ def convert_security_monitoring_terraform_resource(resource_type, body, opts = {
12621263
#
12631264
# Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
12641265
# The `resource_type` path parameter specifies the type of resource to convert
1265-
# and must be one of `suppressions` or `critical_assets`.
1266+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
12661267
#
12671268
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
12681269
# @param body [SecurityMonitoringTerraformConvertRequest] The resource JSON to convert.
@@ -1284,7 +1285,7 @@ def convert_security_monitoring_terraform_resource_with_http_info(resource_type,
12841285
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.convert_security_monitoring_terraform_resource"
12851286
end
12861287
# verify enum value
1287-
allowable_values = ['suppressions', 'critical_assets']
1288+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
12881289
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
12891290
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
12901291
end
@@ -4088,7 +4089,8 @@ def export_security_monitoring_terraform_resource(resource_type, resource_id, op
40884089
#
40894090
# Export a security monitoring resource to a Terraform configuration.
40904091
# The `resource_type` path parameter specifies the type of resource to export
4091-
# and must be one of `suppressions` or `critical_assets`.
4092+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
4093+
# For `rules`, partner rules cannot be exported and return a 400 error.
40924094
#
40934095
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
40944096
# @param resource_id [String] The ID of the security monitoring resource to export.
@@ -4110,7 +4112,7 @@ def export_security_monitoring_terraform_resource_with_http_info(resource_type,
41104112
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.export_security_monitoring_terraform_resource"
41114113
end
41124114
# verify enum value
4113-
allowable_values = ['suppressions', 'critical_assets']
4115+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
41144116
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
41154117
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
41164118
end

lib/datadog_api_client/v2/models/security_monitoring_terraform_resource_type.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ class SecurityMonitoringTerraformResourceType
2323

2424
SUPPRESSIONS = "suppressions".freeze
2525
CRITICAL_ASSETS = "critical_assets".freeze
26+
SECURITY_FILTERS = "security_filters".freeze
27+
RULES = "rules".freeze
2628
end
2729
end

0 commit comments

Comments
 (0)