Skip to content

Commit fc48cf6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0446f59e of spec repo
1 parent 7cc4c3b commit fc48cf6

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

.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": "2025-05-27 10:37:47.296878",
8-
"spec_repo_commit": "c75940cb"
7+
"regenerated": "2025-05-27 13:40:25.076383",
8+
"spec_repo_commit": "0446f59e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 10:37:47.323956",
13-
"spec_repo_commit": "c75940cb"
12+
"regenerated": "2025-05-27 13:40:25.130227",
13+
"spec_repo_commit": "0446f59e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,9 +1254,6 @@ components:
12541254
$ref: '#/components/schemas/AWSAccountCreateRequestAttributes'
12551255
type:
12561256
$ref: '#/components/schemas/AWSAccountType'
1257-
required:
1258-
- attributes
1259-
- type
12601257
type: object
12611258
AWSAccountID:
12621259
description: AWS Account ID.

src/datadog_api_client/v2/model/aws_account_create_request_data.py

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

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

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
unset,
12+
UnsetType,
1113
)
1214

1315

@@ -32,17 +34,23 @@ def openapi_types(_):
3234
"type": "type",
3335
}
3436

35-
def __init__(self_, attributes: AWSAccountCreateRequestAttributes, type: AWSAccountType, **kwargs):
37+
def __init__(
38+
self_,
39+
attributes: Union[AWSAccountCreateRequestAttributes, UnsetType] = unset,
40+
type: Union[AWSAccountType, UnsetType] = unset,
41+
**kwargs,
42+
):
3643
"""
3744
AWS Account Create Request data.
3845
3946
:param attributes: The AWS Account Integration Config to be created.
40-
:type attributes: AWSAccountCreateRequestAttributes
47+
:type attributes: AWSAccountCreateRequestAttributes, optional
4148
4249
:param type: AWS Account resource type.
43-
:type type: AWSAccountType
50+
:type type: AWSAccountType, optional
4451
"""
52+
if attributes is not unset:
53+
kwargs["attributes"] = attributes
54+
if type is not unset:
55+
kwargs["type"] = type
4556
super().__init__(kwargs)
46-
47-
self_.attributes = attributes
48-
self_.type = type

0 commit comments

Comments
 (0)