Skip to content

Commit becbb3d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix Powerpack schema (#1752)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a37fc92 commit becbb3d

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
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": "2023-11-17 18:38:44.802761",
8-
"spec_repo_commit": "ea610108"
7+
"regenerated": "2023-11-17 19:36:50.156877",
8+
"spec_repo_commit": "506ed2d8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-17 18:38:44.817898",
13-
"spec_repo_commit": "ea610108"
12+
"regenerated": "2023-11-17 19:36:50.254511",
13+
"spec_repo_commit": "506ed2d8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12084,7 +12084,7 @@ components:
1208412084
description: Powerpack relationship object.
1208512085
properties:
1208612086
author:
12087-
$ref: '#/components/schemas/Creator'
12087+
$ref: '#/components/schemas/RelationshipToUser'
1208812088
type: object
1208912089
PowerpackResponse:
1209012090
description: Response object which includes a single powerpack configuration.
@@ -12156,6 +12156,7 @@ components:
1215612156
last_offset:
1215712157
description: The last offset.
1215812158
format: int64
12159+
nullable: true
1215912160
type: integer
1216012161
limit:
1216112162
description: Pagination limit.

src/datadog_api_client/v2/model/powerpack_relationships.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@
1414

1515

1616
if TYPE_CHECKING:
17-
from datadog_api_client.v2.model.creator import Creator
17+
from datadog_api_client.v2.model.relationship_to_user import RelationshipToUser
1818

1919

2020
class PowerpackRelationships(ModelNormal):
2121
@cached_property
2222
def openapi_types(_):
23-
from datadog_api_client.v2.model.creator import Creator
23+
from datadog_api_client.v2.model.relationship_to_user import RelationshipToUser
2424

2525
return {
26-
"author": (Creator,),
26+
"author": (RelationshipToUser,),
2727
}
2828

2929
attribute_map = {
3030
"author": "author",
3131
}
3232

33-
def __init__(self_, author: Union[Creator, UnsetType] = unset, **kwargs):
33+
def __init__(self_, author: Union[RelationshipToUser, UnsetType] = unset, **kwargs):
3434
"""
3535
Powerpack relationship object.
3636
37-
:param author: Creator of the object.
38-
:type author: Creator, optional
37+
:param author: Relationship to user.
38+
:type author: RelationshipToUser, optional
3939
"""
4040
if author is not unset:
4141
kwargs["author"] = author

src/datadog_api_client/v2/model/powerpacks_response_meta_pagination.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
none_type,
1112
unset,
1213
UnsetType,
1314
)
@@ -18,7 +19,7 @@ class PowerpacksResponseMetaPagination(ModelNormal):
1819
def openapi_types(_):
1920
return {
2021
"first_offset": (int,),
21-
"last_offset": (int,),
22+
"last_offset": (int, none_type),
2223
"limit": (int,),
2324
"next_offset": (int,),
2425
"offset": (int,),
@@ -41,7 +42,7 @@ def openapi_types(_):
4142
def __init__(
4243
self_,
4344
first_offset: Union[int, UnsetType] = unset,
44-
last_offset: Union[int, UnsetType] = unset,
45+
last_offset: Union[int, none_type, UnsetType] = unset,
4546
limit: Union[int, UnsetType] = unset,
4647
next_offset: Union[int, UnsetType] = unset,
4748
offset: Union[int, UnsetType] = unset,
@@ -57,7 +58,7 @@ def __init__(
5758
:type first_offset: int, optional
5859
5960
:param last_offset: The last offset.
60-
:type last_offset: int, optional
61+
:type last_offset: int, none_type, optional
6162
6263
:param limit: Pagination limit.
6364
:type limit: int, optional

0 commit comments

Comments
 (0)