Skip to content

Commit df1e527

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ffdfd1c of spec repo
1 parent b9b7224 commit df1e527

45 files changed

Lines changed: 4109 additions & 9 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 773 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Create an AWS WIF intake mapping returns "Created" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
const params: v2.AWSWIFApiCreateAwsWifIntakeMappingRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
arnPattern: "arn:aws:iam::123456789012:role/my-agent-role",
15+
},
16+
type: "aws_wif_intake_mapping",
17+
},
18+
},
19+
};
20+
21+
apiInstance
22+
.createAwsWifIntakeMapping(params)
23+
.then((data: v2.AwsWifIntakeMappingResponse) => {
24+
console.log(
25+
"API called successfully. Returned data: " + JSON.stringify(data)
26+
);
27+
})
28+
.catch((error: any) => console.error(error));
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Create an AWS WIF persona mapping returns "Created" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
const params: v2.AWSWIFApiCreateAwsWifPersonaMappingRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
accountIdentifier: "user@example.com",
15+
arnPattern: "arn:aws:iam::123456789012:role/my-workload-role",
16+
},
17+
type: "aws_wif_config",
18+
},
19+
},
20+
};
21+
22+
apiInstance
23+
.createAwsWifPersonaMapping(params)
24+
.then((data: v2.AwsWifPersonaMappingResponse) => {
25+
console.log(
26+
"API called successfully. Returned data: " + JSON.stringify(data)
27+
);
28+
})
29+
.catch((error: any) => console.error(error));
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Delete an AWS WIF intake mapping returns "No Content" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
const params: v2.AWSWIFApiDeleteAwsWifIntakeMappingRequest = {
11+
configUuid: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
12+
};
13+
14+
apiInstance
15+
.deleteAwsWifIntakeMapping(params)
16+
.then((data: any) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Delete an AWS WIF persona mapping returns "No Content" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
const params: v2.AWSWIFApiDeleteAwsWifPersonaMappingRequest = {
11+
configUuid: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
12+
};
13+
14+
apiInstance
15+
.deleteAwsWifPersonaMapping(params)
16+
.then((data: any) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Get an AWS WIF intake mapping returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
const params: v2.AWSWIFApiGetAwsWifIntakeMappingRequest = {
11+
configUuid: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
12+
};
13+
14+
apiInstance
15+
.getAwsWifIntakeMapping(params)
16+
.then((data: v2.AwsWifIntakeMappingResponse) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Get an AWS WIF persona mapping returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
const params: v2.AWSWIFApiGetAwsWifPersonaMappingRequest = {
11+
configUuid: "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
12+
};
13+
14+
apiInstance
15+
.getAwsWifPersonaMapping(params)
16+
.then((data: v2.AwsWifPersonaMappingResponse) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* List AWS WIF intake mappings returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
apiInstance
11+
.listAwsWifIntakeMappings()
12+
.then((data: v2.AwsWifIntakeMappingsResponse) => {
13+
console.log(
14+
"API called successfully. Returned data: " + JSON.stringify(data)
15+
);
16+
})
17+
.catch((error: any) => console.error(error));
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* List AWS WIF persona mappings returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AWSWIFApi(configuration);
9+
10+
apiInstance
11+
.listAwsWifPersonaMappings()
12+
.then((data: v2.AwsWifPersonaMappingsResponse) => {
13+
console.log(
14+
"API called successfully. Returned data: " + JSON.stringify(data)
15+
);
16+
})
17+
.catch((error: any) => console.error(error));
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Get a delegated token returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.DelegatedTokenApi(configuration);
9+
10+
apiInstance
11+
.getDelegatedToken()
12+
.then((data: v2.DelegatedTokenResponse) => {
13+
console.log(
14+
"API called successfully. Returned data: " + JSON.stringify(data)
15+
);
16+
})
17+
.catch((error: any) => console.error(error));

0 commit comments

Comments
 (0)