Skip to content

Commit 427e166

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specskarimo
authored
Remove read only attributes from team create and update (#1455)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: skarimo <[email protected]>
1 parent 64408c6 commit 427e166

File tree

4 files changed

+5
-51
lines changed

4 files changed

+5
-51
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.4",
7-
"regenerated": "2023-05-05 20:21:45.661672",
8-
"spec_repo_commit": "70465187"
7+
"regenerated": "2023-05-09 21:22:58.053236",
8+
"spec_repo_commit": "2ba8c6cd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-05 20:21:45.676846",
13-
"spec_repo_commit": "70465187"
12+
"regenerated": "2023-05-09 21:22:58.065936",
13+
"spec_repo_commit": "2ba8c6cd"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13508,12 +13508,6 @@ components:
1350813508
example: example-team
1350913509
maxLength: 64
1351013510
type: string
13511-
link_count:
13512-
description: The number of links belonging to the team
13513-
format: int32
13514-
maximum: 2147483647
13515-
readOnly: true
13516-
type: integer
1351713511
name:
1351813512
description: The name of the team
1351913513
example: Example Team
@@ -13811,12 +13805,6 @@ components:
1381113805
example: example-team
1381213806
maxLength: 64
1381313807
type: string
13814-
link_count:
13815-
description: The number of links belonging to the team
13816-
format: int32
13817-
maximum: 2147483647
13818-
readOnly: true
13819-
type: integer
1382013808
name:
1382113809
description: The name of the team
1382213810
example: Example Team

src/datadog_api_client/v2/model/team_create_attributes.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class TeamCreateAttributes(ModelNormal):
1818
"handle": {
1919
"max_length": 64,
2020
},
21-
"link_count": {
22-
"inclusive_maximum": 2147483647,
23-
},
2421
"name": {
2522
"max_length": 64,
2623
},
@@ -31,28 +28,16 @@ def openapi_types(_):
3128
return {
3229
"description": (str,),
3330
"handle": (str,),
34-
"link_count": (int,),
3531
"name": (str,),
3632
}
3733

3834
attribute_map = {
3935
"description": "description",
4036
"handle": "handle",
41-
"link_count": "link_count",
4237
"name": "name",
4338
}
44-
read_only_vars = {
45-
"link_count",
46-
}
4739

48-
def __init__(
49-
self_,
50-
handle: str,
51-
name: str,
52-
description: Union[str, UnsetType] = unset,
53-
link_count: Union[int, UnsetType] = unset,
54-
**kwargs,
55-
):
40+
def __init__(self_, handle: str, name: str, description: Union[str, UnsetType] = unset, **kwargs):
5641
"""
5742
Team creation attributes
5843
@@ -62,16 +47,11 @@ def __init__(
6247
:param handle: The team's identifier
6348
:type handle: str
6449
65-
:param link_count: The number of links belonging to the team
66-
:type link_count: int, optional
67-
6850
:param name: The name of the team
6951
:type name: str
7052
"""
7153
if description is not unset:
7254
kwargs["description"] = description
73-
if link_count is not unset:
74-
kwargs["link_count"] = link_count
7555
super().__init__(kwargs)
7656

7757
self_.handle = handle

src/datadog_api_client/v2/model/team_update_attributes.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class TeamUpdateAttributes(ModelNormal):
2222
"handle": {
2323
"max_length": 64,
2424
},
25-
"link_count": {
26-
"inclusive_maximum": 2147483647,
27-
},
2825
"name": {
2926
"max_length": 64,
3027
},
@@ -36,28 +33,22 @@ def openapi_types(_):
3633
"color": (int,),
3734
"description": (str,),
3835
"handle": (str,),
39-
"link_count": (int,),
4036
"name": (str,),
4137
}
4238

4339
attribute_map = {
4440
"color": "color",
4541
"description": "description",
4642
"handle": "handle",
47-
"link_count": "link_count",
4843
"name": "name",
4944
}
50-
read_only_vars = {
51-
"link_count",
52-
}
5345

5446
def __init__(
5547
self_,
5648
handle: str,
5749
name: str,
5850
color: Union[int, UnsetType] = unset,
5951
description: Union[str, UnsetType] = unset,
60-
link_count: Union[int, UnsetType] = unset,
6152
**kwargs,
6253
):
6354
"""
@@ -72,18 +63,13 @@ def __init__(
7263
:param handle: The team's identifier
7364
:type handle: str
7465
75-
:param link_count: The number of links belonging to the team
76-
:type link_count: int, optional
77-
7866
:param name: The name of the team
7967
:type name: str
8068
"""
8169
if color is not unset:
8270
kwargs["color"] = color
8371
if description is not unset:
8472
kwargs["description"] = description
85-
if link_count is not unset:
86-
kwargs["link_count"] = link_count
8773
super().__init__(kwargs)
8874

8975
self_.handle = handle

0 commit comments

Comments
 (0)