Skip to content

Commit eff8237

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

3 files changed

Lines changed: 30 additions & 7 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:

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4725,8 +4725,9 @@ def bulk_export_security_monitoring_terraform_resources(
47254725
47264726
Export multiple security monitoring resources to Terraform, packaged as a zip archive.
47274727
The ``resource_type`` path parameter specifies the type of resources to export
4728-
and must be one of ``suppressions`` or ``critical_assets``.
4728+
and must be one of ``suppressions`` , ``critical_assets`` , ``security_filters`` , or ``rules``.
47294729
A maximum of 1000 resources can be exported in a single request.
4730+
For ``rules`` , partner rules cannot be exported and return a 400 error.
47304731
47314732
:param resource_type: The type of security monitoring resource to export.
47324733
:type resource_type: SecurityMonitoringTerraformResourceType
@@ -4834,7 +4835,7 @@ def convert_security_monitoring_terraform_resource(
48344835
48354836
Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
48364837
The ``resource_type`` path parameter specifies the type of resource to convert
4837-
and must be one of ``suppressions`` or ``critical_assets``.
4838+
and must be one of ``suppressions`` , ``critical_assets`` , ``security_filters`` , or ``rules``.
48384839
48394840
:param resource_type: The type of security monitoring resource to export.
48404841
:type resource_type: SecurityMonitoringTerraformResourceType
@@ -5566,7 +5567,8 @@ def export_security_monitoring_terraform_resource(
55665567
55675568
Export a security monitoring resource to a Terraform configuration.
55685569
The ``resource_type`` path parameter specifies the type of resource to export
5569-
and must be one of ``suppressions`` or ``critical_assets``.
5570+
and must be one of ``suppressions`` , ``critical_assets`` , ``security_filters`` , or ``rules``.
5571+
For ``rules`` , partner rules cannot be exported and return a 400 error.
55705572
55715573
:param resource_type: The type of security monitoring resource to export.
55725574
:type resource_type: SecurityMonitoringTerraformResourceType

src/datadog_api_client/v2/model/security_monitoring_terraform_resource_type.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ class SecurityMonitoringTerraformResourceType(ModelSimple):
1616
"""
1717
The type of security monitoring resource to export to Terraform.
1818
19-
:param value: Must be one of ["suppressions", "critical_assets"].
19+
:param value: Must be one of ["suppressions", "critical_assets", "security_filters", "rules"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"suppressions",
2525
"critical_assets",
26+
"security_filters",
27+
"rules",
2628
}
2729
SUPPRESSIONS: ClassVar["SecurityMonitoringTerraformResourceType"]
2830
CRITICAL_ASSETS: ClassVar["SecurityMonitoringTerraformResourceType"]
31+
SECURITY_FILTERS: ClassVar["SecurityMonitoringTerraformResourceType"]
32+
RULES: ClassVar["SecurityMonitoringTerraformResourceType"]
2933

3034
@cached_property
3135
def openapi_types(_):
@@ -36,3 +40,5 @@ def openapi_types(_):
3640

3741
SecurityMonitoringTerraformResourceType.SUPPRESSIONS = SecurityMonitoringTerraformResourceType("suppressions")
3842
SecurityMonitoringTerraformResourceType.CRITICAL_ASSETS = SecurityMonitoringTerraformResourceType("critical_assets")
43+
SecurityMonitoringTerraformResourceType.SECURITY_FILTERS = SecurityMonitoringTerraformResourceType("security_filters")
44+
SecurityMonitoringTerraformResourceType.RULES = SecurityMonitoringTerraformResourceType("rules")

0 commit comments

Comments
 (0)