Skip to content

Commit 6d3233a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2918dab0 of spec repo
1 parent fd07359 commit 6d3233a

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.4",
7-
"regenerated": "2023-04-04 17:50:52.788705",
8-
"spec_repo_commit": "9a7b22d0"
7+
"regenerated": "2023-04-04 20:55:57.006295",
8+
"spec_repo_commit": "2918dab0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-04-04 17:50:52.800936",
13-
"spec_repo_commit": "9a7b22d0"
12+
"regenerated": "2023-04-04 20:55:57.019710",
13+
"spec_repo_commit": "2918dab0"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,6 +2405,8 @@ components:
24052405
items:
24062406
type: string
24072407
type: array
2408+
required:
2409+
- resource_type
24082410
type: object
24092411
ConfluentAccountResponse:
24102412
description: The expected response schema when getting a Confluent account.
@@ -2539,6 +2541,8 @@ components:
25392541
items:
25402542
type: string
25412543
type: array
2544+
required:
2545+
- resource_type
25422546
type: object
25432547
ConfluentResourceRequestData:
25442548
description: JSON:API request for updating a Confluent resource.

src/datadog_api_client/v2/model/confluent_account_resource_attributes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def openapi_types(_):
3030

3131
def __init__(
3232
self_,
33+
resource_type: str,
3334
id: Union[str, UnsetType] = unset,
34-
resource_type: Union[str, UnsetType] = unset,
3535
tags: Union[List[str], UnsetType] = unset,
3636
**kwargs,
3737
):
@@ -42,15 +42,15 @@ def __init__(
4242
:type id: str, optional
4343
4444
:param resource_type: The resource type of the Resource. Can be ``kafka`` , ``connector`` , ``ksql`` , or ``schema_registry``.
45-
:type resource_type: str, optional
45+
:type resource_type: str
4646
4747
:param tags: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
4848
:type tags: [str], optional
4949
"""
5050
if id is not unset:
5151
kwargs["id"] = id
52-
if resource_type is not unset:
53-
kwargs["resource_type"] = resource_type
5452
if tags is not unset:
5553
kwargs["tags"] = tags
5654
super().__init__(kwargs)
55+
56+
self_.resource_type = resource_type

src/datadog_api_client/v2/model/confluent_resource_request_attributes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,18 @@ def openapi_types(_):
2626
"tags": "tags",
2727
}
2828

29-
def __init__(
30-
self_, resource_type: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs
31-
):
29+
def __init__(self_, resource_type: str, tags: Union[List[str], UnsetType] = unset, **kwargs):
3230
"""
3331
Attributes object for updating a Confluent resource.
3432
3533
:param resource_type: The resource type of the Resource. Can be ``kafka`` , ``connector`` , ``ksql`` , or ``schema_registry``.
36-
:type resource_type: str, optional
34+
:type resource_type: str
3735
3836
:param tags: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
3937
:type tags: [str], optional
4038
"""
41-
if resource_type is not unset:
42-
kwargs["resource_type"] = resource_type
4339
if tags is not unset:
4440
kwargs["tags"] = tags
4541
super().__init__(kwargs)
42+
43+
self_.resource_type = resource_type

0 commit comments

Comments
 (0)