Skip to content

Commit 060d37f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ec3c91a9 of spec repo (#1276)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 3a44f33 commit 060d37f

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2022-12-19 15:44:19.631812",
8-
"spec_repo_commit": "37d94b14"
7+
"regenerated": "2022-12-20 16:44:55.552816",
8+
"spec_repo_commit": "ec3c91a9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-12-19 15:44:19.647393",
13-
"spec_repo_commit": "37d94b14"
12+
"regenerated": "2022-12-20 16:44:55.565349",
13+
"spec_repo_commit": "ec3c91a9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,12 @@ components:
17761776
type: string
17771777
type: object
17781778
CloudConfigurationComplianceRuleOptions:
1779-
description: Options for cloud_configuration rules.
1779+
description: 'Options for cloud_configuration rules.
1780+
1781+
Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration`
1782+
rules.
1783+
1784+
'
17801785
properties:
17811786
complexRule:
17821787
description: 'Whether the rule is a complex one.
@@ -1795,9 +1800,6 @@ components:
17951800
'
17961801
example: aws_acm
17971802
type: string
1798-
required:
1799-
- resourceType
1800-
- regoRule
18011803
type: object
18021804
CloudConfigurationRegoRule:
18031805
description: Rule details.

src/datadog_api_client/v2/model/cloud_configuration_compliance_rule_options.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,29 @@ def openapi_types(_):
3636

3737
def __init__(
3838
self_,
39-
rego_rule: CloudConfigurationRegoRule,
40-
resource_type: str,
4139
complex_rule: Union[bool, UnsetType] = unset,
40+
rego_rule: Union[CloudConfigurationRegoRule, UnsetType] = unset,
41+
resource_type: Union[str, UnsetType] = unset,
4242
**kwargs,
4343
):
4444
"""
4545
Options for cloud_configuration rules.
46+
Fields ``resourceType`` and ``regoRule`` are mandatory when managing custom ``cloud_configuration`` rules.
4647
4748
:param complex_rule: Whether the rule is a complex one.
4849
Must be set to true if ``regoRule.resourceTypes`` contains more than one item. Defaults to false.
4950
:type complex_rule: bool, optional
5051
5152
:param rego_rule: Rule details.
52-
:type rego_rule: CloudConfigurationRegoRule
53+
:type rego_rule: CloudConfigurationRegoRule, optional
5354
5455
:param resource_type: Main resource type to be checked by the rule. It should be specified again in ``regoRule.resourceTypes``.
55-
:type resource_type: str
56+
:type resource_type: str, optional
5657
"""
5758
if complex_rule is not unset:
5859
kwargs["complex_rule"] = complex_rule
60+
if rego_rule is not unset:
61+
kwargs["rego_rule"] = rego_rule
62+
if resource_type is not unset:
63+
kwargs["resource_type"] = resource_type
5964
super().__init__(kwargs)
60-
61-
self_.rego_rule = rego_rule
62-
self_.resource_type = resource_type

src/datadog_api_client/v2/model/cloud_configuration_rule_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __init__(self_, compliance_rule_options: CloudConfigurationComplianceRuleOpt
3737
Options on cloud configuration rules.
3838
3939
:param compliance_rule_options: Options for cloud_configuration rules.
40+
Fields ``resourceType`` and ``regoRule`` are mandatory when managing custom ``cloud_configuration`` rules.
4041
:type compliance_rule_options: CloudConfigurationComplianceRuleOptions
4142
"""
4243
super().__init__(kwargs)

src/datadog_api_client/v2/model/security_monitoring_rule_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def __init__(
105105
Options on rules.
106106
107107
:param compliance_rule_options: Options for cloud_configuration rules.
108+
Fields ``resourceType`` and ``regoRule`` are mandatory when managing custom ``cloud_configuration`` rules.
108109
:type compliance_rule_options: CloudConfigurationComplianceRuleOptions, optional
109110
110111
:param decrease_criticality_based_on_env: If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce signal noise.

0 commit comments

Comments
 (0)