Skip to content

Commit 58fb2cd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fc31fb4 of spec repo
1 parent 481f315 commit 58fb2cd

14 files changed

+650
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,14 @@ components:
929929
example: 10
930930
format: int64
931931
type: integer
932+
PersonaMappingID:
933+
description: The ID of the persona mapping
934+
example: c5c758c6-18c2-4484-ae3f-46b84128404a
935+
in: path
936+
name: persona_mapping_id
937+
required: true
938+
schema:
939+
type: string
932940
ProductName:
933941
description: Name of the product to be deleted, either `logs` or `rum`.
934942
in: path
@@ -1910,6 +1918,41 @@ components:
19101918
- account_identifier
19111919
- account_uuid
19121920
type: object
1921+
AWSCloudAuthPersonaMappingCreateAttributes:
1922+
description: Attributes for creating an AWS cloud authentication persona mapping
1923+
properties:
1924+
account_identifier:
1925+
description: Datadog account identifier (email or handle) mapped to the
1926+
AWS principal
1927+
example: test@test.com
1928+
type: string
1929+
arn_pattern:
1930+
description: AWS IAM ARN pattern to match for authentication
1931+
example: arn:aws:iam::123456789012:user/testuser
1932+
type: string
1933+
required:
1934+
- arn_pattern
1935+
- account_identifier
1936+
type: object
1937+
AWSCloudAuthPersonaMappingCreateData:
1938+
description: Data for creating an AWS cloud authentication persona mapping
1939+
properties:
1940+
attributes:
1941+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingCreateAttributes'
1942+
type:
1943+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingType'
1944+
required:
1945+
- type
1946+
- attributes
1947+
type: object
1948+
AWSCloudAuthPersonaMappingCreateRequest:
1949+
description: Request used to create an AWS cloud authentication persona mapping
1950+
properties:
1951+
data:
1952+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingCreateData'
1953+
required:
1954+
- data
1955+
type: object
19131956
AWSCloudAuthPersonaMappingDataResponse:
19141957
description: Data for AWS cloud authentication persona mapping response
19151958
properties:
@@ -1926,6 +1969,14 @@ components:
19261969
- type
19271970
- attributes
19281971
type: object
1972+
AWSCloudAuthPersonaMappingResponse:
1973+
description: Response containing a single AWS cloud authentication persona mapping
1974+
properties:
1975+
data:
1976+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingDataResponse'
1977+
required:
1978+
- data
1979+
type: object
19291980
AWSCloudAuthPersonaMappingType:
19301981
description: Type identifier for AWS cloud authentication persona mapping
19311982
enum:
@@ -77100,6 +77151,114 @@ paths:
7710077151
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
7710177152

7710277153
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77154+
post:
77155+
description: Create an AWS cloud authentication persona mapping. This endpoint
77156+
associates an AWS IAM principal with a Datadog user.
77157+
operationId: CreateAWSCloudAuthPersonaMapping
77158+
requestBody:
77159+
content:
77160+
application/json:
77161+
schema:
77162+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingCreateRequest'
77163+
required: true
77164+
responses:
77165+
'201':
77166+
content:
77167+
application/json:
77168+
schema:
77169+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingResponse'
77170+
description: Created
77171+
'400':
77172+
content:
77173+
application/json:
77174+
schema:
77175+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77176+
description: Bad Request
77177+
'403':
77178+
content:
77179+
application/json:
77180+
schema:
77181+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77182+
description: Forbidden
77183+
'409':
77184+
content:
77185+
application/json:
77186+
schema:
77187+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77188+
description: Conflict
77189+
'429':
77190+
$ref: '#/components/responses/TooManyRequestsResponse'
77191+
summary: Create an AWS cloud authentication persona mapping
77192+
tags:
77193+
- Cloud Authentication
77194+
x-codegen-request-body-name: body
77195+
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
77196+
77197+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77198+
/api/v2/cloud_auth/aws/persona_mapping/{persona_mapping_id}:
77199+
delete:
77200+
description: Delete an AWS cloud authentication persona mapping by ID. This
77201+
removes the association between an AWS IAM principal and a Datadog user.
77202+
operationId: DeleteAWSCloudAuthPersonaMapping
77203+
parameters:
77204+
- $ref: '#/components/parameters/PersonaMappingID'
77205+
responses:
77206+
'204':
77207+
description: No Content
77208+
'403':
77209+
content:
77210+
application/json:
77211+
schema:
77212+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77213+
description: Forbidden
77214+
'404':
77215+
content:
77216+
application/json:
77217+
schema:
77218+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77219+
description: Not Found
77220+
'429':
77221+
$ref: '#/components/responses/TooManyRequestsResponse'
77222+
summary: Delete an AWS cloud authentication persona mapping
77223+
tags:
77224+
- Cloud Authentication
77225+
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
77226+
77227+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
77228+
get:
77229+
description: Get a specific AWS cloud authentication persona mapping by ID.
77230+
This endpoint retrieves a single configured persona mapping that associates
77231+
an AWS IAM principal with a Datadog user.
77232+
operationId: GetAWSCloudAuthPersonaMapping
77233+
parameters:
77234+
- $ref: '#/components/parameters/PersonaMappingID'
77235+
responses:
77236+
'200':
77237+
content:
77238+
application/json:
77239+
schema:
77240+
$ref: '#/components/schemas/AWSCloudAuthPersonaMappingResponse'
77241+
description: OK
77242+
'403':
77243+
content:
77244+
application/json:
77245+
schema:
77246+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77247+
description: Forbidden
77248+
'404':
77249+
content:
77250+
application/json:
77251+
schema:
77252+
$ref: '#/components/schemas/JSONAPIErrorResponse'
77253+
description: Not Found
77254+
'429':
77255+
$ref: '#/components/responses/TooManyRequestsResponse'
77256+
summary: Get an AWS cloud authentication persona mapping
77257+
tags:
77258+
- Cloud Authentication
77259+
x-unstable: '**Note**: This endpoint is in public beta and is subject to change.
77260+
77261+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
7710377262
/api/v2/cloud_security_management/custom_frameworks:
7710477263
post:
7710577264
description: Create a custom framework.

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,13 +1789,41 @@ datadog\_api\_client.v2.model.aws\_cloud\_auth\_persona\_mapping\_attributes\_re
17891789
:members:
17901790
:show-inheritance:
17911791

1792+
datadog\_api\_client.v2.model.aws\_cloud\_auth\_persona\_mapping\_create\_attributes module
1793+
-------------------------------------------------------------------------------------------
1794+
1795+
.. automodule:: datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_create_attributes
1796+
:members:
1797+
:show-inheritance:
1798+
1799+
datadog\_api\_client.v2.model.aws\_cloud\_auth\_persona\_mapping\_create\_data module
1800+
-------------------------------------------------------------------------------------
1801+
1802+
.. automodule:: datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_create_data
1803+
:members:
1804+
:show-inheritance:
1805+
1806+
datadog\_api\_client.v2.model.aws\_cloud\_auth\_persona\_mapping\_create\_request module
1807+
----------------------------------------------------------------------------------------
1808+
1809+
.. automodule:: datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_create_request
1810+
:members:
1811+
:show-inheritance:
1812+
17921813
datadog\_api\_client.v2.model.aws\_cloud\_auth\_persona\_mapping\_data\_response module
17931814
---------------------------------------------------------------------------------------
17941815

17951816
.. automodule:: datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_data_response
17961817
:members:
17971818
:show-inheritance:
17981819

1820+
datadog\_api\_client.v2.model.aws\_cloud\_auth\_persona\_mapping\_response module
1821+
---------------------------------------------------------------------------------
1822+
1823+
.. automodule:: datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_response
1824+
:members:
1825+
:show-inheritance:
1826+
17991827
datadog\_api\_client.v2.model.aws\_cloud\_auth\_persona\_mapping\_type module
18001828
-----------------------------------------------------------------------------
18011829

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
"""
2+
Create an AWS cloud authentication persona mapping returns "Created" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_authentication_api import CloudAuthenticationApi
7+
from datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_create_attributes import (
8+
AWSCloudAuthPersonaMappingCreateAttributes,
9+
)
10+
from datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_create_data import AWSCloudAuthPersonaMappingCreateData
11+
from datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_create_request import (
12+
AWSCloudAuthPersonaMappingCreateRequest,
13+
)
14+
from datadog_api_client.v2.model.aws_cloud_auth_persona_mapping_type import AWSCloudAuthPersonaMappingType
15+
16+
body = AWSCloudAuthPersonaMappingCreateRequest(
17+
data=AWSCloudAuthPersonaMappingCreateData(
18+
attributes=AWSCloudAuthPersonaMappingCreateAttributes(
19+
account_identifier="test@test.com",
20+
arn_pattern="arn:aws:iam::123456789012:user/testuser",
21+
),
22+
type=AWSCloudAuthPersonaMappingType.AWS_CLOUD_AUTH_CONFIG,
23+
),
24+
)
25+
26+
configuration = Configuration()
27+
configuration.unstable_operations["create_aws_cloud_auth_persona_mapping"] = True
28+
with ApiClient(configuration) as api_client:
29+
api_instance = CloudAuthenticationApi(api_client)
30+
response = api_instance.create_aws_cloud_auth_persona_mapping(body=body)
31+
32+
print(response)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Delete an AWS cloud authentication persona mapping returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_authentication_api import CloudAuthenticationApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["delete_aws_cloud_auth_persona_mapping"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = CloudAuthenticationApi(api_client)
12+
api_instance.delete_aws_cloud_auth_persona_mapping(
13+
persona_mapping_id="persona_mapping_id",
14+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Get an AWS cloud authentication persona mapping returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.cloud_authentication_api import CloudAuthenticationApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["get_aws_cloud_auth_persona_mapping"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = CloudAuthenticationApi(api_client)
12+
response = api_instance.get_aws_cloud_auth_persona_mapping(
13+
persona_mapping_id="persona_mapping_id",
14+
)
15+
16+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ def __init__(
279279
"v2.get_change_request": False,
280280
"v2.update_change_request": False,
281281
"v2.update_change_request_decision": False,
282+
"v2.create_aws_cloud_auth_persona_mapping": False,
283+
"v2.delete_aws_cloud_auth_persona_mapping": False,
284+
"v2.get_aws_cloud_auth_persona_mapping": False,
282285
"v2.list_aws_cloud_auth_persona_mappings": False,
283286
"v2.activate_content_pack": False,
284287
"v2.cancel_threat_hunting_job": False,

0 commit comments

Comments
 (0)