Skip to content

Commit 962df85

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 06669ba of spec repo
1 parent 6ad3ac3 commit 962df85

File tree

7 files changed

+52
-77
lines changed

7 files changed

+52
-77
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13283,6 +13283,7 @@ components:
1328313283
type:
1328413284
$ref: '#/components/schemas/StatusPagesComponentGroupType'
1328513285
required:
13286+
- attributes
1328613287
- type
1328713288
type: object
1328813289
CreateComponentRequestDataAttributes:
@@ -13367,7 +13368,7 @@ components:
1336713368
properties:
1336813369
id:
1336913370
description: The ID of the group.
13370-
example: ''
13371+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1337113372
format: uuid
1337213373
type: string
1337313374
type:
@@ -13569,6 +13570,7 @@ components:
1356913570
type:
1357013571
$ref: '#/components/schemas/PatchDegradationRequestDataType'
1357113572
required:
13573+
- attributes
1357213574
- type
1357313575
type: object
1357413576
CreateDegradationRequestDataAttributes:
@@ -13604,7 +13606,7 @@ components:
1360413606
properties:
1360513607
id:
1360613608
description: The ID of the component. Must be a component of type `component`.
13607-
example: ''
13609+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1360813610
format: uuid
1360913611
type: string
1361013612
name:
@@ -14327,6 +14329,7 @@ components:
1432714329
type:
1432814330
$ref: '#/components/schemas/StatusPageDataType'
1432914331
required:
14332+
- attributes
1433014333
- type
1433114334
type: object
1433214335
CreateStatusPageRequestDataAttributes:
@@ -18391,7 +18394,7 @@ components:
1839118394
properties:
1839218395
id:
1839318396
description: The ID of the component.
18394-
example: ''
18397+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1839518398
format: uuid
1839618399
type: string
1839718400
name:
@@ -18436,7 +18439,7 @@ components:
1843618439
properties:
1843718440
id:
1843818441
description: Identifier of the component affected at the time of the update.
18439-
example: ''
18442+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1844018443
format: uuid
1844118444
type: string
1844218445
name:
@@ -18512,7 +18515,7 @@ components:
1851218515
properties:
1851318516
id:
1851418517
description: The ID of the status page.
18515-
example: ''
18518+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1851618519
format: uuid
1851718520
type: string
1851818521
type:
@@ -43649,11 +43652,14 @@ components:
4364943652
$ref: '#/components/schemas/PatchComponentRequestDataAttributes'
4365043653
id:
4365143654
description: The ID of the component.
43655+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4365243656
format: uuid
4365343657
type: string
4365443658
type:
4365543659
$ref: '#/components/schemas/StatusPagesComponentGroupType'
4365643660
required:
43661+
- attributes
43662+
- id
4365743663
- type
4365843664
type: object
4365943665
PatchComponentRequestDataAttributes:
@@ -43692,11 +43698,14 @@ components:
4369243698
$ref: '#/components/schemas/PatchDegradationRequestDataAttributes'
4369343699
id:
4369443700
description: The ID of the degradation.
43701+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4369543702
format: uuid
4369643703
type: string
4369743704
type:
4369843705
$ref: '#/components/schemas/PatchDegradationRequestDataType'
4369943706
required:
43707+
- attributes
43708+
- id
4370043709
- type
4370143710
type: object
4370243711
PatchDegradationRequestDataAttributes:
@@ -43727,7 +43736,7 @@ components:
4372743736
properties:
4372843737
id:
4372943738
description: The ID of the component. Must be a component of type `component`.
43730-
example: ''
43739+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4373143740
format: uuid
4373243741
type: string
4373343742
name:
@@ -43832,11 +43841,14 @@ components:
4383243841
$ref: '#/components/schemas/PatchStatusPageRequestDataAttributes'
4383343842
id:
4383443843
description: The ID of the status page.
43844+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4383543845
format: uuid
4383643846
type: string
4383743847
type:
4383843848
$ref: '#/components/schemas/StatusPageDataType'
4383943849
required:
43850+
- attributes
43851+
- id
4384043852
- type
4384143853
type: object
4384243854
PatchStatusPageRequestDataAttributes:
@@ -58764,7 +58776,7 @@ components:
5876458776
properties:
5876558777
id:
5876658778
description: The ID of the group the component belongs to.
58767-
example: ''
58779+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5876858780
format: uuid
5876958781
type: string
5877058782
type:
@@ -58803,7 +58815,7 @@ components:
5880358815
properties:
5880458816
id:
5880558817
description: The ID of the status page the component belongs to.
58806-
example: ''
58818+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5880758819
format: uuid
5880858820
type: string
5880958821
type:
@@ -58945,7 +58957,7 @@ components:
5894558957
nullable: true
5894658958
properties:
5894758959
id:
58948-
example: ''
58960+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5894958961
format: uuid
5895058962
type: string
5895158963
type:
@@ -58987,7 +58999,7 @@ components:
5898758999
properties:
5898859000
id:
5898959001
description: The ID of the status page.
58990-
example: ''
59002+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5899159003
format: uuid
5899259004
type: string
5899359005
type:

src/datadog_api_client/v2/model/create_component_request_data.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,26 @@ def openapi_types(_):
4848

4949
def __init__(
5050
self_,
51+
attributes: CreateComponentRequestDataAttributes,
5152
type: StatusPagesComponentGroupType,
52-
attributes: Union[CreateComponentRequestDataAttributes, UnsetType] = unset,
5353
relationships: Union[CreateComponentRequestDataRelationships, UnsetType] = unset,
5454
**kwargs,
5555
):
5656
"""
5757
5858
5959
:param attributes: The supported attributes for creating a component.
60-
:type attributes: CreateComponentRequestDataAttributes, optional
60+
:type attributes: CreateComponentRequestDataAttributes
6161
6262
:param relationships: The supported relationships for creating a component.
6363
:type relationships: CreateComponentRequestDataRelationships, optional
6464
6565
:param type: Components resource type.
6666
:type type: StatusPagesComponentGroupType
6767
"""
68-
if attributes is not unset:
69-
kwargs["attributes"] = attributes
7068
if relationships is not unset:
7169
kwargs["relationships"] = relationships
7270
super().__init__(kwargs)
7371

72+
self_.attributes = attributes
7473
self_.type = type

src/datadog_api_client/v2/model/create_degradation_request_data.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
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

@@ -39,22 +37,18 @@ def openapi_types(_):
3937
}
4038

4139
def __init__(
42-
self_,
43-
type: PatchDegradationRequestDataType,
44-
attributes: Union[CreateDegradationRequestDataAttributes, UnsetType] = unset,
45-
**kwargs,
40+
self_, attributes: CreateDegradationRequestDataAttributes, type: PatchDegradationRequestDataType, **kwargs
4641
):
4742
"""
4843
4944
5045
:param attributes: The supported attributes for creating a degradation.
51-
:type attributes: CreateDegradationRequestDataAttributes, optional
46+
:type attributes: CreateDegradationRequestDataAttributes
5247
5348
:param type: Degradations resource type.
5449
:type type: PatchDegradationRequestDataType
5550
"""
56-
if attributes is not unset:
57-
kwargs["attributes"] = attributes
5851
super().__init__(kwargs)
5952

53+
self_.attributes = attributes
6054
self_.type = type

src/datadog_api_client/v2/model/create_status_page_request_data.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
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

@@ -38,23 +36,17 @@ def openapi_types(_):
3836
"type": "type",
3937
}
4038

41-
def __init__(
42-
self_,
43-
type: StatusPageDataType,
44-
attributes: Union[CreateStatusPageRequestDataAttributes, UnsetType] = unset,
45-
**kwargs,
46-
):
39+
def __init__(self_, attributes: CreateStatusPageRequestDataAttributes, type: StatusPageDataType, **kwargs):
4740
"""
4841
4942
5043
:param attributes: The supported attributes for creating a status page.
51-
:type attributes: CreateStatusPageRequestDataAttributes, optional
44+
:type attributes: CreateStatusPageRequestDataAttributes
5245
5346
:param type: Status pages resource type.
5447
:type type: StatusPageDataType
5548
"""
56-
if attributes is not unset:
57-
kwargs["attributes"] = attributes
5849
super().__init__(kwargs)
5950

51+
self_.attributes = attributes
6052
self_.type = type

src/datadog_api_client/v2/model/patch_component_request_data.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
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
UUID,
1412
)
1513

@@ -40,28 +38,22 @@ def openapi_types(_):
4038
}
4139

4240
def __init__(
43-
self_,
44-
type: StatusPagesComponentGroupType,
45-
attributes: Union[PatchComponentRequestDataAttributes, UnsetType] = unset,
46-
id: Union[UUID, UnsetType] = unset,
47-
**kwargs,
41+
self_, attributes: PatchComponentRequestDataAttributes, id: UUID, type: StatusPagesComponentGroupType, **kwargs
4842
):
4943
"""
5044
5145
5246
:param attributes: The supported attributes for updating a component.
53-
:type attributes: PatchComponentRequestDataAttributes, optional
47+
:type attributes: PatchComponentRequestDataAttributes
5448
5549
:param id: The ID of the component.
56-
:type id: UUID, optional
50+
:type id: UUID
5751
5852
:param type: Components resource type.
5953
:type type: StatusPagesComponentGroupType
6054
"""
61-
if attributes is not unset:
62-
kwargs["attributes"] = attributes
63-
if id is not unset:
64-
kwargs["id"] = id
6555
super().__init__(kwargs)
6656

57+
self_.attributes = attributes
58+
self_.id = id
6759
self_.type = type

src/datadog_api_client/v2/model/patch_degradation_request_data.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
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
UUID,
1412
)
1513

@@ -43,27 +41,25 @@ def openapi_types(_):
4341

4442
def __init__(
4543
self_,
44+
attributes: PatchDegradationRequestDataAttributes,
45+
id: UUID,
4646
type: PatchDegradationRequestDataType,
47-
attributes: Union[PatchDegradationRequestDataAttributes, UnsetType] = unset,
48-
id: Union[UUID, UnsetType] = unset,
4947
**kwargs,
5048
):
5149
"""
5250
5351
5452
:param attributes: The supported attributes for updating a degradation.
55-
:type attributes: PatchDegradationRequestDataAttributes, optional
53+
:type attributes: PatchDegradationRequestDataAttributes
5654
5755
:param id: The ID of the degradation.
58-
:type id: UUID, optional
56+
:type id: UUID
5957
6058
:param type: Degradations resource type.
6159
:type type: PatchDegradationRequestDataType
6260
"""
63-
if attributes is not unset:
64-
kwargs["attributes"] = attributes
65-
if id is not unset:
66-
kwargs["id"] = id
6761
super().__init__(kwargs)
6862

63+
self_.attributes = attributes
64+
self_.id = id
6965
self_.type = type

0 commit comments

Comments
 (0)