Skip to content

Commit f8baf21

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0122b5c of spec repo
1 parent e6849a3 commit f8baf21

File tree

12 files changed

+1488
-2
lines changed

12 files changed

+1488
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,14 @@ components:
918918
example: 10
919919
format: int64
920920
type: integer
921+
PersonaMappingID:
922+
description: The ID of the persona mapping
923+
example: c5c758c6-18c2-4484-ae3f-46b84128404a
924+
in: path
925+
name: persona_mapping_id
926+
required: true
927+
schema:
928+
type: string
921929
ProductName:
922930
description: Name of the product to be deleted, either `logs` or `rum`.
923931
in: path
@@ -1899,6 +1907,41 @@ components:
18991907
- account_identifier
19001908
- account_uuid
19011909
type: object
1910+
AWSCloudAuthPersonaMappingCreateAttributes:
1911+
description: Attributes for creating an AWS cloud authentication persona mapping
1912+
properties:
1913+
account_identifier:
1914+
description: Datadog account identifier (email or handle) mapped to the
1915+
AWS principal
1916+
example: test@test.com
1917+
type: string
1918+
arn_pattern:
1919+
description: AWS IAM ARN pattern to match for authentication
1920+
example: arn:aws:iam::123456789012:user/testuser
1921+
type: string
1922+
required:
1923+
- arn_pattern
1924+
- account_identifier
1925+
type: object
1926+
AWSCloudAuthPersonaMappingCreateData:
1927+
description: Data for creating an AWS cloud authentication persona mapping
1928+
properties:
1929+
attributes:
1930+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingCreateAttributes'
1931+
type:
1932+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingType'
1933+
required:
1934+
- type
1935+
- attributes
1936+
type: object
1937+
AWSCloudAuthPersonaMappingCreateRequest:
1938+
description: Request used to create an AWS cloud authentication persona mapping
1939+
properties:
1940+
data:
1941+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingCreateData'
1942+
required:
1943+
- data
1944+
type: object
19021945
AWSCloudAuthPersonaMappingDataResponse:
19031946
description: Data for AWS cloud authentication persona mapping response
19041947
properties:
@@ -1915,6 +1958,14 @@ components:
19151958
- type
19161959
- attributes
19171960
type: object
1961+
AWSCloudAuthPersonaMappingResponse:
1962+
description: Response containing a single AWS cloud authentication persona mapping
1963+
properties:
1964+
data:
1965+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingDataResponse'
1966+
required:
1967+
- data
1968+
type: object
19181969
AWSCloudAuthPersonaMappingType:
19191970
description: Type identifier for AWS cloud authentication persona mapping
19201971
enum:
@@ -76498,6 +76549,114 @@ paths:
7649876549
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
7649976550

7650076551
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
76552+
post:
76553+
description: Create a new AWS cloud authentication persona mapping. This endpoint
76554+
associates an AWS IAM principal with a Datadog user.
76555+
operationId: CreateAWSCloudAuthPersonaMapping
76556+
requestBody:
76557+
content:
76558+
application/json:
76559+
schema:
76560+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingCreateRequest'
76561+
required: true
76562+
responses:
76563+
'201':
76564+
content:
76565+
application/json:
76566+
schema:
76567+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingResponse'
76568+
description: Created
76569+
'400':
76570+
content:
76571+
application/json:
76572+
schema:
76573+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76574+
description: Bad Request
76575+
'403':
76576+
content:
76577+
application/json:
76578+
schema:
76579+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76580+
description: Forbidden
76581+
'409':
76582+
content:
76583+
application/json:
76584+
schema:
76585+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76586+
description: Conflict
76587+
'429':
76588+
$ref: '#/components/responses/TooManyRequestsResponse'
76589+
summary: Create an AWS cloud authentication persona mapping
76590+
tags:
76591+
- Cloud Authentication
76592+
x-codegen-request-body-name: body
76593+
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
76594+
76595+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
76596+
/api/v2/cloud_auth/aws/persona_mapping/{persona_mapping_id}:
76597+
delete:
76598+
description: Delete an AWS cloud authentication persona mapping by ID. This
76599+
removes the association between an AWS IAM principal and a Datadog user.
76600+
operationId: DeleteAWSCloudAuthPersonaMapping
76601+
parameters:
76602+
- $ref: '#/components/parameters/PersonaMappingID'
76603+
responses:
76604+
'204':
76605+
description: No Content
76606+
'403':
76607+
content:
76608+
application/json:
76609+
schema:
76610+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76611+
description: Forbidden
76612+
'404':
76613+
content:
76614+
application/json:
76615+
schema:
76616+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76617+
description: Not Found
76618+
'429':
76619+
$ref: '#/components/responses/TooManyRequestsResponse'
76620+
summary: Delete an AWS cloud authentication persona mapping
76621+
tags:
76622+
- Cloud Authentication
76623+
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
76624+
76625+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
76626+
get:
76627+
description: Get a specific AWS cloud authentication persona mapping by ID.
76628+
This endpoint retrieves a single configured persona mapping that associates
76629+
an AWS IAM principal with a Datadog user.
76630+
operationId: GetAWSCloudAuthPersonaMapping
76631+
parameters:
76632+
- $ref: '#/components/parameters/PersonaMappingID'
76633+
responses:
76634+
'200':
76635+
content:
76636+
application/json:
76637+
schema:
76638+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingResponse'
76639+
description: OK
76640+
'403':
76641+
content:
76642+
application/json:
76643+
schema:
76644+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76645+
description: Forbidden
76646+
'404':
76647+
content:
76648+
application/json:
76649+
schema:
76650+
$ref: '#/components/schemas/JSONAPIErrorResponse'
76651+
description: Not Found
76652+
'429':
76653+
$ref: '#/components/responses/TooManyRequestsResponse'
76654+
summary: Get an AWS cloud authentication persona mapping
76655+
tags:
76656+
- Cloud Authentication
76657+
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
76658+
76659+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
7650176660
/api/v2/cloud_security_management/custom_frameworks:
7650276661
post:
7650376662
description: Create a custom framework.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Create an AWS cloud authentication persona mapping returns "Created" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.CloudAuthenticationApi;
6+
import com.datadog.api.client.v2.model.AWSCloudAuthPersonaMappingCreateAttributes;
7+
import com.datadog.api.client.v2.model.AWSCloudAuthPersonaMappingCreateData;
8+
import com.datadog.api.client.v2.model.AWSCloudAuthPersonaMappingCreateRequest;
9+
import com.datadog.api.client.v2.model.AWSCloudAuthPersonaMappingResponse;
10+
import com.datadog.api.client.v2.model.AWSCloudAuthPersonaMappingType;
11+
12+
public class Example {
13+
public static void main(String[] args) {
14+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
15+
defaultClient.setUnstableOperationEnabled("v2.createAWSCloudAuthPersonaMapping", true);
16+
CloudAuthenticationApi apiInstance = new CloudAuthenticationApi(defaultClient);
17+
18+
AWSCloudAuthPersonaMappingCreateRequest body =
19+
new AWSCloudAuthPersonaMappingCreateRequest()
20+
.data(
21+
new AWSCloudAuthPersonaMappingCreateData()
22+
.attributes(
23+
new AWSCloudAuthPersonaMappingCreateAttributes()
24+
.accountIdentifier("test@test.com")
25+
.arnPattern("arn:aws:iam::123456789012:user/testuser"))
26+
.type(AWSCloudAuthPersonaMappingType.AWS_CLOUD_AUTH_CONFIG));
27+
28+
try {
29+
AWSCloudAuthPersonaMappingResponse result =
30+
apiInstance.createAWSCloudAuthPersonaMapping(body);
31+
System.out.println(result);
32+
} catch (ApiException e) {
33+
System.err.println(
34+
"Exception when calling CloudAuthenticationApi#createAWSCloudAuthPersonaMapping");
35+
System.err.println("Status code: " + e.getCode());
36+
System.err.println("Reason: " + e.getResponseBody());
37+
System.err.println("Response headers: " + e.getResponseHeaders());
38+
e.printStackTrace();
39+
}
40+
}
41+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Delete an AWS cloud authentication persona mapping returns "No Content" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.CloudAuthenticationApi;
6+
7+
public class Example {
8+
public static void main(String[] args) {
9+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
10+
defaultClient.setUnstableOperationEnabled("v2.deleteAWSCloudAuthPersonaMapping", true);
11+
CloudAuthenticationApi apiInstance = new CloudAuthenticationApi(defaultClient);
12+
13+
try {
14+
apiInstance.deleteAWSCloudAuthPersonaMapping("c5c758c6-18c2-4484-ae3f-46b84128404a");
15+
} catch (ApiException e) {
16+
System.err.println(
17+
"Exception when calling CloudAuthenticationApi#deleteAWSCloudAuthPersonaMapping");
18+
System.err.println("Status code: " + e.getCode());
19+
System.err.println("Reason: " + e.getResponseBody());
20+
System.err.println("Response headers: " + e.getResponseHeaders());
21+
e.printStackTrace();
22+
}
23+
}
24+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Get an AWS cloud authentication persona mapping returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.CloudAuthenticationApi;
6+
import com.datadog.api.client.v2.model.AWSCloudAuthPersonaMappingResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
defaultClient.setUnstableOperationEnabled("v2.getAWSCloudAuthPersonaMapping", true);
12+
CloudAuthenticationApi apiInstance = new CloudAuthenticationApi(defaultClient);
13+
14+
try {
15+
AWSCloudAuthPersonaMappingResponse result =
16+
apiInstance.getAWSCloudAuthPersonaMapping("c5c758c6-18c2-4484-ae3f-46b84128404a");
17+
System.out.println(result);
18+
} catch (ApiException e) {
19+
System.err.println(
20+
"Exception when calling CloudAuthenticationApi#getAWSCloudAuthPersonaMapping");
21+
System.err.println("Status code: " + e.getCode());
22+
System.err.println("Reason: " + e.getResponseBody());
23+
System.err.println("Response headers: " + e.getResponseHeaders());
24+
e.printStackTrace();
25+
}
26+
}
27+
}

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,9 @@ public class ApiClient {
788788
put("v2.getChangeRequest", false);
789789
put("v2.updateChangeRequest", false);
790790
put("v2.updateChangeRequestDecision", false);
791+
put("v2.createAWSCloudAuthPersonaMapping", false);
792+
put("v2.deleteAWSCloudAuthPersonaMapping", false);
793+
put("v2.getAWSCloudAuthPersonaMapping", false);
791794
put("v2.listAWSCloudAuthPersonaMappings", false);
792795
put("v2.activateContentPack", false);
793796
put("v2.cancelThreatHuntingJob", false);

0 commit comments

Comments
 (0)