Skip to content

Commit 1e2a32d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ec3c91a9 of spec repo (#958)
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 ad6fa10 commit 1e2a32d

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
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:06.472004",
8-
"spec_repo_commit": "37d94b14"
7+
"regenerated": "2022-12-20 16:45:23.602683",
8+
"spec_repo_commit": "ec3c91a9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-12-19 15:44:06.483320",
13-
"spec_repo_commit": "37d94b14"
12+
"regenerated": "2022-12-20 16:45:23.613963",
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.

packages/datadog-api-client-v2/models/CloudConfigurationComplianceRuleOptions.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
99

1010
/**
1111
* Options for cloud_configuration rules.
12+
* Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules.
1213
*/
1314
export class CloudConfigurationComplianceRuleOptions {
1415
/**
@@ -19,11 +20,11 @@ export class CloudConfigurationComplianceRuleOptions {
1920
/**
2021
* Rule details.
2122
*/
22-
"regoRule": CloudConfigurationRegoRule;
23+
"regoRule"?: CloudConfigurationRegoRule;
2324
/**
2425
* Main resource type to be checked by the rule. It should be specified again in `regoRule.resourceTypes`.
2526
*/
26-
"resourceType": string;
27+
"resourceType"?: string;
2728

2829
/**
2930
* @ignore
@@ -41,12 +42,10 @@ export class CloudConfigurationComplianceRuleOptions {
4142
regoRule: {
4243
baseName: "regoRule",
4344
type: "CloudConfigurationRegoRule",
44-
required: true,
4545
},
4646
resourceType: {
4747
baseName: "resourceType",
4848
type: "string",
49-
required: true,
5049
},
5150
};
5251

packages/datadog-api-client-v2/models/CloudConfigurationRuleOptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1313
export class CloudConfigurationRuleOptions {
1414
/**
1515
* Options for cloud_configuration rules.
16+
* Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules.
1617
*/
1718
"complianceRuleOptions": CloudConfigurationComplianceRuleOptions;
1819

packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
2020
export class SecurityMonitoringRuleOptions {
2121
/**
2222
* Options for cloud_configuration rules.
23+
* Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules.
2324
*/
2425
"complianceRuleOptions"?: CloudConfigurationComplianceRuleOptions;
2526
/**

0 commit comments

Comments
 (0)