Skip to content

Commit 75760e1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 12e050e of spec repo (#319)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 7ec2128 commit 75760e1

File tree

4 files changed

+84
-12
lines changed

4 files changed

+84
-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.5.1.dev2",
7-
"regenerated": "2021-10-15 20:21:48.679835",
8-
"spec_repo_commit": "452360f"
7+
"regenerated": "2021-10-16 11:02:48.670750",
8+
"spec_repo_commit": "12e050e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-15 20:22:51.786005",
13-
"spec_repo_commit": "452360f"
12+
"regenerated": "2021-10-16 11:03:39.781259",
13+
"spec_repo_commit": "12e050e"
1414
}
1515
}
1616
}

docs/v1/AWSIntegrationApi.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ let params: v1.AWSIntegrationApiCreateAWSAccountRequest = {
4040
accountSpecificNamespaceRules: {
4141
key: true,
4242
},
43+
cspmResourceCollectionEnabled: true,
4344
excludedRegions: ["us-east-1", "us-west-2"],
4445
filterTags: ["<KEY>:<VALUE>"],
4546
hostTags: ["<KEY>:<VALUE>"],
47+
metricsCollectionEnabled: false,
48+
resourceCollectionEnabled: true,
4649
roleName: "DatadogAWSIntegrationRole",
4750
secretAccessKey: "secretAccessKey_example",
4851
},
@@ -174,9 +177,12 @@ let params: v1.AWSIntegrationApiCreateNewAWSExternalIDRequest = {
174177
accountSpecificNamespaceRules: {
175178
key: true,
176179
},
180+
cspmResourceCollectionEnabled: true,
177181
excludedRegions: ["us-east-1", "us-west-2"],
178182
filterTags: ["<KEY>:<VALUE>"],
179183
hostTags: ["<KEY>:<VALUE>"],
184+
metricsCollectionEnabled: false,
185+
resourceCollectionEnabled: true,
180186
roleName: "DatadogAWSIntegrationRole",
181187
secretAccessKey: "secretAccessKey_example",
182188
},
@@ -545,9 +551,12 @@ let params: v1.AWSIntegrationApiUpdateAWSAccountRequest = {
545551
accountSpecificNamespaceRules: {
546552
key: true,
547553
},
554+
cspmResourceCollectionEnabled: true,
548555
excludedRegions: ["us-east-1", "us-west-2"],
549556
filterTags: ["<KEY>:<VALUE>"],
550557
hostTags: ["<KEY>:<VALUE>"],
558+
metricsCollectionEnabled: false,
559+
resourceCollectionEnabled: true,
551560
roleName: "DatadogAWSIntegrationRole",
552561
secretAccessKey: "secretAccessKey_example",
553562
},

features/v1/aws_integration.feature

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ Feature: AWS Integration
1212
@generated @skip
1313
Scenario: Create an AWS integration returns "Bad Request" response
1414
Given new "CreateAWSAccount" request
15-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
15+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
1616
When the request is sent
1717
Then the response status is 400 Bad Request
1818

1919
@generated @skip
2020
Scenario: Create an AWS integration returns "Conflict Error" response
2121
Given new "CreateAWSAccount" request
22-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
22+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
2323
When the request is sent
2424
Then the response status is 409 Conflict Error
2525

2626
@generated @skip
2727
Scenario: Create an AWS integration returns "OK" response
2828
Given new "CreateAWSAccount" request
29-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
29+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
3030
When the request is sent
3131
Then the response status is 200 OK
3232

@@ -68,14 +68,14 @@ Feature: AWS Integration
6868
@generated @skip
6969
Scenario: Generate a new external ID returns "Bad Request" response
7070
Given new "CreateNewAWSExternalID" request
71-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
71+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
7272
When the request is sent
7373
Then the response status is 400 Bad Request
7474

7575
@generated @skip
7676
Scenario: Generate a new external ID returns "OK" response
7777
Given new "CreateNewAWSExternalID" request
78-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
78+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
7979
When the request is sent
8080
Then the response status is 200 OK
8181

@@ -126,20 +126,20 @@ Feature: AWS Integration
126126
@generated @skip
127127
Scenario: Update an AWS integration returns "Bad Request" response
128128
Given new "UpdateAWSAccount" request
129-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
129+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
130130
When the request is sent
131131
Then the response status is 400 Bad Request
132132

133133
@generated @skip
134134
Scenario: Update an AWS integration returns "Conflict Error" response
135135
Given new "UpdateAWSAccount" request
136-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
136+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
137137
When the request is sent
138138
Then the response status is 409 Conflict Error
139139

140140
@generated @skip
141141
Scenario: Update an AWS integration returns "OK" response
142142
Given new "UpdateAWSAccount" request
143-
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
143+
And body with value {"access_key_id": null, "account_id": "1234567", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["<KEY>:<VALUE>"], "host_tags": ["<KEY>:<VALUE>"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole", "secret_access_key": null}
144144
When the request is sent
145145
Then the response status is 200 OK

packages/datadog-api-client-v1/models/AWSAccount.ts

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export class AWSAccount {
2727
* An object, (in the form `{\"namespace1\":true/false, \"namespace2\":true/false}`), that enables or disables metric collection for specific AWS namespaces for this AWS account only.
2828
*/
2929
"accountSpecificNamespaceRules"?: { [key: string]: boolean };
30+
/**
31+
* Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`.
32+
*/
33+
"cspmResourceCollectionEnabled"?: boolean;
3034
/**
3135
* An array of AWS regions to exclude from metrics collection.
3236
*/
@@ -39,6 +43,14 @@ export class AWSAccount {
3943
* Array of tags (in the form `key:value`) to add to all hosts and metrics reporting through this integration.
4044
*/
4145
"hostTags"?: Array<string>;
46+
/**
47+
* Whether Datadog collects metrics for this AWS account.
48+
*/
49+
"metricsCollectionEnabled"?: boolean;
50+
/**
51+
* Whether Datadog collects a standard set of resources from your AWS account.
52+
*/
53+
"resourceCollectionEnabled"?: boolean;
4254
/**
4355
* Your Datadog role delegation name.
4456
*/
@@ -70,6 +82,11 @@ export class AWSAccount {
7082
type: "{ [key: string]: boolean; }",
7183
format: "",
7284
},
85+
cspmResourceCollectionEnabled: {
86+
baseName: "cspm_resource_collection_enabled",
87+
type: "boolean",
88+
format: "",
89+
},
7390
excludedRegions: {
7491
baseName: "excluded_regions",
7592
type: "Array<string>",
@@ -85,6 +102,16 @@ export class AWSAccount {
85102
type: "Array<string>",
86103
format: "",
87104
},
105+
metricsCollectionEnabled: {
106+
baseName: "metrics_collection_enabled",
107+
type: "boolean",
108+
format: "",
109+
},
110+
resourceCollectionEnabled: {
111+
baseName: "resource_collection_enabled",
112+
type: "boolean",
113+
format: "",
114+
},
88115
roleName: {
89116
baseName: "role_name",
90117
type: "string",
@@ -118,6 +145,12 @@ export class AWSAccount {
118145
""
119146
);
120147

148+
res.cspmResourceCollectionEnabled = ObjectSerializer.deserialize(
149+
data.cspm_resource_collection_enabled,
150+
"boolean",
151+
""
152+
);
153+
121154
res.excludedRegions = ObjectSerializer.deserialize(
122155
data.excluded_regions,
123156
"Array<string>",
@@ -136,6 +169,18 @@ export class AWSAccount {
136169
""
137170
);
138171

172+
res.metricsCollectionEnabled = ObjectSerializer.deserialize(
173+
data.metrics_collection_enabled,
174+
"boolean",
175+
""
176+
);
177+
178+
res.resourceCollectionEnabled = ObjectSerializer.deserialize(
179+
data.resource_collection_enabled,
180+
"boolean",
181+
""
182+
);
183+
139184
res.roleName = ObjectSerializer.deserialize(data.role_name, "string", "");
140185

141186
res.secretAccessKey = ObjectSerializer.deserialize(
@@ -172,6 +217,12 @@ export class AWSAccount {
172217
""
173218
);
174219

220+
res.cspm_resource_collection_enabled = ObjectSerializer.serialize(
221+
data.cspmResourceCollectionEnabled,
222+
"boolean",
223+
""
224+
);
225+
175226
res.excluded_regions = ObjectSerializer.serialize(
176227
data.excludedRegions,
177228
"Array<string>",
@@ -190,6 +241,18 @@ export class AWSAccount {
190241
""
191242
);
192243

244+
res.metrics_collection_enabled = ObjectSerializer.serialize(
245+
data.metricsCollectionEnabled,
246+
"boolean",
247+
""
248+
);
249+
250+
res.resource_collection_enabled = ObjectSerializer.serialize(
251+
data.resourceCollectionEnabled,
252+
"boolean",
253+
""
254+
);
255+
193256
res.role_name = ObjectSerializer.serialize(data.roleName, "string", "");
194257

195258
res.secret_access_key = ObjectSerializer.serialize(

0 commit comments

Comments
 (0)