Skip to content

Commit 26e21c9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0ff9dfac of spec repo
1 parent 91a372c commit 26e21c9

20 files changed

+529
-74
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.6",
7-
"regenerated": "2024-02-12 17:39:31.445533",
8-
"spec_repo_commit": "3cda457d"
7+
"regenerated": "2024-02-13 19:21:36.264459",
8+
"spec_repo_commit": "0ff9dfac"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-02-12 17:39:31.467984",
13-
"spec_repo_commit": "3cda457d"
12+
"regenerated": "2024-02-13 19:21:36.349411",
13+
"spec_repo_commit": "0ff9dfac"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 94 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,18 +1311,12 @@ components:
13111311
attributes:
13121312
$ref: '#/components/schemas/AuthNMappingCreateAttributes'
13131313
relationships:
1314-
$ref: '#/components/schemas/AuthNMappingCreateRelationships'
1314+
$ref: '#/components/schemas/AuthNMappingRelationships'
13151315
type:
13161316
$ref: '#/components/schemas/AuthNMappingsType'
13171317
required:
13181318
- type
13191319
type: object
1320-
AuthNMappingCreateRelationships:
1321-
description: Relationship of AuthN Mapping create object to Role.
1322-
properties:
1323-
role:
1324-
$ref: '#/components/schemas/RelationshipToRole'
1325-
type: object
13261320
AuthNMappingCreateRequest:
13271321
description: Request for creating an AuthN Mapping.
13281322
properties:
@@ -1336,13 +1330,32 @@ components:
13361330
oneOf:
13371331
- $ref: '#/components/schemas/SAMLAssertionAttribute'
13381332
- $ref: '#/components/schemas/Role'
1333+
- $ref: '#/components/schemas/AuthNMappingTeam'
1334+
AuthNMappingRelationshipToRole:
1335+
description: Relationship of AuthN Mapping to a Role.
1336+
properties:
1337+
role:
1338+
$ref: '#/components/schemas/RelationshipToRole'
1339+
required:
1340+
- role
1341+
type: object
1342+
AuthNMappingRelationshipToTeam:
1343+
description: Relationship of AuthN Mapping to a Team.
1344+
properties:
1345+
team:
1346+
$ref: '#/components/schemas/RelationshipToTeam'
1347+
required:
1348+
- team
1349+
type: object
13391350
AuthNMappingRelationships:
13401351
description: All relationships associated with AuthN Mapping.
13411352
properties:
13421353
role:
13431354
$ref: '#/components/schemas/RelationshipToRole'
13441355
saml_assertion_attribute:
13451356
$ref: '#/components/schemas/RelationshipToSAMLAssertionAttribute'
1357+
team:
1358+
$ref: '#/components/schemas/RelationshipToTeam'
13461359
type: object
13471360
AuthNMappingResponse:
13481361
description: AuthN Mapping response from the API.
@@ -1355,6 +1368,60 @@ components:
13551368
$ref: '#/components/schemas/AuthNMappingIncluded'
13561369
type: array
13571370
type: object
1371+
AuthNMappingTeam:
1372+
description: Team.
1373+
properties:
1374+
attributes:
1375+
$ref: '#/components/schemas/AuthNMappingTeamAttributes'
1376+
id:
1377+
description: The ID of the Team.
1378+
example: f9bb8444-af7f-11ec-ac2c-da7ad0900001
1379+
type: string
1380+
type:
1381+
$ref: '#/components/schemas/TeamType'
1382+
type: object
1383+
AuthNMappingTeamAttributes:
1384+
description: Team attributes.
1385+
properties:
1386+
avatar:
1387+
description: Unicode representation of the avatar for the team, limited
1388+
to a single grapheme
1389+
example: "\U0001F951"
1390+
nullable: true
1391+
type: string
1392+
banner:
1393+
description: Banner selection for the team
1394+
format: int64
1395+
nullable: true
1396+
type: integer
1397+
handle:
1398+
description: The team's identifier
1399+
example: example-team
1400+
maxLength: 195
1401+
type: string
1402+
link_count:
1403+
description: The number of links belonging to the team
1404+
format: int32
1405+
maximum: 2147483647
1406+
readOnly: true
1407+
type: integer
1408+
name:
1409+
description: The name of the team
1410+
example: Example Team
1411+
maxLength: 200
1412+
type: string
1413+
summary:
1414+
description: A brief summary of the team, derived from the `description`
1415+
maxLength: 120
1416+
nullable: true
1417+
type: string
1418+
user_count:
1419+
description: The number of users belonging to the team
1420+
format: int32
1421+
maximum: 2147483647
1422+
readOnly: true
1423+
type: integer
1424+
type: object
13581425
AuthNMappingUpdateAttributes:
13591426
description: Key/Value pair of attributes used for update request.
13601427
properties:
@@ -1387,10 +1454,10 @@ components:
13871454
- type
13881455
type: object
13891456
AuthNMappingUpdateRelationships:
1390-
description: Relationship of AuthN Mapping update object to Role.
1391-
properties:
1392-
role:
1393-
$ref: '#/components/schemas/RelationshipToRole'
1457+
description: Relationship of AuthN Mapping update object to a Role or Team.
1458+
oneOf:
1459+
- $ref: '#/components/schemas/AuthNMappingRelationshipToRole'
1460+
- $ref: '#/components/schemas/AuthNMappingRelationshipToTeam'
13941461
type: object
13951462
AuthNMappingUpdateRequest:
13961463
description: Request to update an AuthN Mapping.
@@ -14748,6 +14815,22 @@ components:
1474814815
- id
1474914816
- type
1475014817
type: object
14818+
RelationshipToTeam:
14819+
description: Relationship to team.
14820+
properties:
14821+
data:
14822+
$ref: '#/components/schemas/RelationshipToTeamData'
14823+
type: object
14824+
RelationshipToTeamData:
14825+
description: Relationship to Team object.
14826+
properties:
14827+
id:
14828+
description: The unique identifier of the team.
14829+
example: f9bb8444-af7f-11ec-ac2c-da7ad0900001
14830+
type: string
14831+
type:
14832+
$ref: '#/components/schemas/TeamType'
14833+
type: object
1475114834
RelationshipToTeamLinkData:
1475214835
description: Relationship between a link and a team
1475314836
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,6 @@ authn\_mapping\_create\_data
358358
:members:
359359
:show-inheritance:
360360

361-
authn\_mapping\_create\_relationships
362-
-------------------------------------
363-
364-
.. automodule:: datadog_api_client.v2.model.authn_mapping_create_relationships
365-
:members:
366-
:show-inheritance:
367-
368361
authn\_mapping\_create\_request
369362
-------------------------------
370363

@@ -379,6 +372,20 @@ authn\_mapping\_included
379372
:members:
380373
:show-inheritance:
381374

375+
authn\_mapping\_relationship\_to\_role
376+
--------------------------------------
377+
378+
.. automodule:: datadog_api_client.v2.model.authn_mapping_relationship_to_role
379+
:members:
380+
:show-inheritance:
381+
382+
authn\_mapping\_relationship\_to\_team
383+
--------------------------------------
384+
385+
.. automodule:: datadog_api_client.v2.model.authn_mapping_relationship_to_team
386+
:members:
387+
:show-inheritance:
388+
382389
authn\_mapping\_relationships
383390
-----------------------------
384391

@@ -393,6 +400,20 @@ authn\_mapping\_response
393400
:members:
394401
:show-inheritance:
395402

403+
authn\_mapping\_team
404+
--------------------
405+
406+
.. automodule:: datadog_api_client.v2.model.authn_mapping_team
407+
:members:
408+
:show-inheritance:
409+
410+
authn\_mapping\_team\_attributes
411+
--------------------------------
412+
413+
.. automodule:: datadog_api_client.v2.model.authn_mapping_team_attributes
414+
:members:
415+
:show-inheritance:
416+
396417
authn\_mapping\_update\_attributes
397418
----------------------------------
398419

@@ -6273,6 +6294,20 @@ relationship\_to\_saml\_assertion\_attribute\_data
62736294
:members:
62746295
:show-inheritance:
62756296

6297+
relationship\_to\_team
6298+
----------------------
6299+
6300+
.. automodule:: datadog_api_client.v2.model.relationship_to_team
6301+
:members:
6302+
:show-inheritance:
6303+
6304+
relationship\_to\_team\_data
6305+
----------------------------
6306+
6307+
.. automodule:: datadog_api_client.v2.model.relationship_to_team_data
6308+
:members:
6309+
:show-inheritance:
6310+
62766311
relationship\_to\_team\_link\_data
62776312
----------------------------------
62786313

examples/v2/authn-mappings/CreateAuthNMapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from datadog_api_client.v2.api.authn_mappings_api import AuthNMappingsApi
88
from datadog_api_client.v2.model.authn_mapping_create_attributes import AuthNMappingCreateAttributes
99
from datadog_api_client.v2.model.authn_mapping_create_data import AuthNMappingCreateData
10-
from datadog_api_client.v2.model.authn_mapping_create_relationships import AuthNMappingCreateRelationships
1110
from datadog_api_client.v2.model.authn_mapping_create_request import AuthNMappingCreateRequest
11+
from datadog_api_client.v2.model.authn_mapping_relationships import AuthNMappingRelationships
1212
from datadog_api_client.v2.model.authn_mappings_type import AuthNMappingsType
1313
from datadog_api_client.v2.model.relationship_to_role import RelationshipToRole
1414
from datadog_api_client.v2.model.relationship_to_role_data import RelationshipToRoleData
@@ -23,7 +23,7 @@
2323
attribute_key="exampleauthnmapping",
2424
attribute_value="Example-AuthN-Mapping",
2525
),
26-
relationships=AuthNMappingCreateRelationships(
26+
relationships=AuthNMappingRelationships(
2727
role=RelationshipToRole(
2828
data=RelationshipToRoleData(
2929
id=ROLE_DATA_ID,

examples/v2/authn-mappings/UpdateAuthNMapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from os import environ
66
from datadog_api_client import ApiClient, Configuration
77
from datadog_api_client.v2.api.authn_mappings_api import AuthNMappingsApi
8+
from datadog_api_client.v2.model.authn_mapping_relationship_to_role import AuthNMappingRelationshipToRole
89
from datadog_api_client.v2.model.authn_mapping_update_attributes import AuthNMappingUpdateAttributes
910
from datadog_api_client.v2.model.authn_mapping_update_data import AuthNMappingUpdateData
10-
from datadog_api_client.v2.model.authn_mapping_update_relationships import AuthNMappingUpdateRelationships
1111
from datadog_api_client.v2.model.authn_mapping_update_request import AuthNMappingUpdateRequest
1212
from datadog_api_client.v2.model.authn_mappings_type import AuthNMappingsType
1313
from datadog_api_client.v2.model.relationship_to_role import RelationshipToRole
@@ -27,7 +27,7 @@
2727
attribute_value="Development",
2828
),
2929
id=AUTHN_MAPPING_DATA_ID,
30-
relationships=AuthNMappingUpdateRelationships(
30+
relationships=AuthNMappingRelationshipToRole(
3131
role=RelationshipToRole(
3232
data=RelationshipToRoleData(
3333
id=ROLE_DATA_ID,

src/datadog_api_client/v2/model/authn_mapping_create_data.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.authn_mapping_create_attributes import AuthNMappingCreateAttributes
18-
from datadog_api_client.v2.model.authn_mapping_create_relationships import AuthNMappingCreateRelationships
18+
from datadog_api_client.v2.model.authn_mapping_relationships import AuthNMappingRelationships
1919
from datadog_api_client.v2.model.authn_mappings_type import AuthNMappingsType
2020

2121

2222
class AuthNMappingCreateData(ModelNormal):
2323
@cached_property
2424
def openapi_types(_):
2525
from datadog_api_client.v2.model.authn_mapping_create_attributes import AuthNMappingCreateAttributes
26-
from datadog_api_client.v2.model.authn_mapping_create_relationships import AuthNMappingCreateRelationships
26+
from datadog_api_client.v2.model.authn_mapping_relationships import AuthNMappingRelationships
2727
from datadog_api_client.v2.model.authn_mappings_type import AuthNMappingsType
2828

2929
return {
3030
"attributes": (AuthNMappingCreateAttributes,),
31-
"relationships": (AuthNMappingCreateRelationships,),
31+
"relationships": (AuthNMappingRelationships,),
3232
"type": (AuthNMappingsType,),
3333
}
3434

@@ -42,7 +42,7 @@ def __init__(
4242
self_,
4343
type: AuthNMappingsType,
4444
attributes: Union[AuthNMappingCreateAttributes, UnsetType] = unset,
45-
relationships: Union[AuthNMappingCreateRelationships, UnsetType] = unset,
45+
relationships: Union[AuthNMappingRelationships, UnsetType] = unset,
4646
**kwargs,
4747
):
4848
"""
@@ -51,8 +51,8 @@ def __init__(
5151
:param attributes: Key/Value pair of attributes used for create request.
5252
:type attributes: AuthNMappingCreateAttributes, optional
5353
54-
:param relationships: Relationship of AuthN Mapping create object to Role.
55-
:type relationships: AuthNMappingCreateRelationships, optional
54+
:param relationships: All relationships associated with AuthN Mapping.
55+
:type relationships: AuthNMappingRelationships, optional
5656
5757
:param type: AuthN Mappings resource type.
5858
:type type: AuthNMappingsType

src/datadog_api_client/v2/model/authn_mapping_included.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ def _composed_schemas(_):
4040
# loading
4141
from datadog_api_client.v2.model.saml_assertion_attribute import SAMLAssertionAttribute
4242
from datadog_api_client.v2.model.role import Role
43+
from datadog_api_client.v2.model.authn_mapping_team import AuthNMappingTeam
4344

4445
return {
4546
"oneOf": [
4647
SAMLAssertionAttribute,
4748
Role,
49+
AuthNMappingTeam,
4850
],
4951
}

src/datadog_api_client/v2/model/authn_mapping_create_relationships.py renamed to src/datadog_api_client/v2/model/authn_mapping_relationship_to_role.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,19 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11-
unset,
12-
UnsetType,
1311
)
1412

1513

1614
if TYPE_CHECKING:
1715
from datadog_api_client.v2.model.relationship_to_role import RelationshipToRole
1816

1917

20-
class AuthNMappingCreateRelationships(ModelNormal):
18+
class AuthNMappingRelationshipToRole(ModelNormal):
2119
@cached_property
2220
def openapi_types(_):
2321
from datadog_api_client.v2.model.relationship_to_role import RelationshipToRole
@@ -30,13 +28,13 @@ def openapi_types(_):
3028
"role": "role",
3129
}
3230

33-
def __init__(self_, role: Union[RelationshipToRole, UnsetType] = unset, **kwargs):
31+
def __init__(self_, role: RelationshipToRole, **kwargs):
3432
"""
35-
Relationship of AuthN Mapping create object to Role.
33+
Relationship of AuthN Mapping to a Role.
3634
3735
:param role: Relationship to role.
38-
:type role: RelationshipToRole, optional
36+
:type role: RelationshipToRole
3937
"""
40-
if role is not unset:
41-
kwargs["role"] = role
4238
super().__init__(kwargs)
39+
40+
self_.role = role

0 commit comments

Comments
 (0)