Skip to content

Commit 36576ff

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0460aa0 of spec repo
1 parent d6973c6 commit 36576ff

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
@@ -88613,10 +88613,14 @@ components:
8861388613
enum:
8861488614
- suppressions
8861588615
- critical_assets
88616+
- security_filters
88617+
- rules
8861688618
type: string
8861788619
x-enum-varnames:
8861888620
- SUPPRESSIONS
8861988621
- CRITICAL_ASSETS
88622+
- SECURITY_FILTERS
88623+
- RULES
8862088624
SecurityMonitoringThirdPartyRootQuery:
8862188625
description: A query to be combined with the third party case query.
8862288626
properties:
@@ -177097,8 +177101,9 @@ paths:
177097177101
description: |-
177098177102
Export multiple security monitoring resources to Terraform, packaged as a zip archive.
177099177103
The `resource_type` path parameter specifies the type of resources to export
177100-
and must be one of `suppressions` or `critical_assets`.
177104+
and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
177101177105
A maximum of 1000 resources can be exported in a single request.
177106+
For `rules`, partner rules cannot be exported and return a 400 error.
177102177107
operationId: BulkExportSecurityMonitoringTerraformResources
177103177108
parameters:
177104177109
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
@@ -177143,6 +177148,8 @@ paths:
177143177148
- security_monitoring_suppressions_read
177144177149
- AuthZ:
177145177150
- security_monitoring_rules_read
177151+
- AuthZ:
177152+
- security_monitoring_filters_read
177146177153
summary: Export security monitoring resources to Terraform
177147177154
tags:
177148177155
- Security Monitoring
@@ -177152,13 +177159,14 @@ paths:
177152177159
permissions:
177153177160
- security_monitoring_suppressions_read
177154177161
- security_monitoring_rules_read
177162+
- security_monitoring_filters_read
177155177163
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
177156177164
/api/v2/security_monitoring/terraform/{resource_type}/convert:
177157177165
post:
177158177166
description: |-
177159177167
Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
177160177168
The `resource_type` path parameter specifies the type of resource to convert
177161-
and must be one of `suppressions` or `critical_assets`.
177169+
and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
177162177170
operationId: ConvertSecurityMonitoringTerraformResource
177163177171
parameters:
177164177172
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
@@ -177211,6 +177219,8 @@ paths:
177211177219
- security_monitoring_suppressions_read
177212177220
- AuthZ:
177213177221
- security_monitoring_rules_read
177222+
- AuthZ:
177223+
- security_monitoring_filters_read
177214177224
summary: Convert security monitoring resource to Terraform
177215177225
tags:
177216177226
- Security Monitoring
@@ -177220,13 +177230,15 @@ paths:
177220177230
permissions:
177221177231
- security_monitoring_suppressions_read
177222177232
- security_monitoring_rules_read
177233+
- security_monitoring_filters_read
177223177234
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
177224177235
/api/v2/security_monitoring/terraform/{resource_type}/{resource_id}:
177225177236
get:
177226177237
description: |-
177227177238
Export a security monitoring resource to a Terraform configuration.
177228177239
The `resource_type` path parameter specifies the type of resource to export
177229-
and must be one of `suppressions` or `critical_assets`.
177240+
and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
177241+
For `rules`, partner rules cannot be exported and return a 400 error.
177230177242
operationId: ExportSecurityMonitoringTerraformResource
177231177243
parameters:
177232177244
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
@@ -177261,6 +177273,8 @@ paths:
177261177273
- security_monitoring_suppressions_read
177262177274
- AuthZ:
177263177275
- security_monitoring_rules_read
177276+
- AuthZ:
177277+
- security_monitoring_filters_read
177264177278
summary: Export security monitoring resource to Terraform
177265177279
tags:
177266177280
- Security Monitoring
@@ -177269,6 +177283,7 @@ paths:
177269177283
permissions:
177270177284
- security_monitoring_suppressions_read
177271177285
- security_monitoring_rules_read
177286+
- security_monitoring_filters_read
177272177287
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
177273177288
/api/v2/sensitive-data-scanner/config:
177274177289
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)