Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13283,6 +13283,7 @@ components:
type:
$ref: '#/components/schemas/StatusPagesComponentGroupType'
required:
- attributes
- type
type: object
CreateComponentRequestDataAttributes:
Expand Down Expand Up @@ -13367,7 +13368,7 @@ components:
properties:
id:
description: The ID of the group.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -13569,6 +13570,7 @@ components:
type:
$ref: '#/components/schemas/PatchDegradationRequestDataType'
required:
- attributes
- type
type: object
CreateDegradationRequestDataAttributes:
Expand Down Expand Up @@ -13604,7 +13606,7 @@ components:
properties:
id:
description: The ID of the component. Must be a component of type `component`.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -14327,6 +14329,7 @@ components:
type:
$ref: '#/components/schemas/StatusPageDataType'
required:
- attributes
- type
type: object
CreateStatusPageRequestDataAttributes:
Expand Down Expand Up @@ -18391,7 +18394,7 @@ components:
properties:
id:
description: The ID of the component.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -18436,7 +18439,7 @@ components:
properties:
id:
description: Identifier of the component affected at the time of the update.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -18512,7 +18515,7 @@ components:
properties:
id:
description: The ID of the status page.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -43661,11 +43664,14 @@ components:
$ref: '#/components/schemas/PatchComponentRequestDataAttributes'
id:
description: The ID of the component.
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
$ref: '#/components/schemas/StatusPagesComponentGroupType'
required:
- attributes
- id
- type
type: object
PatchComponentRequestDataAttributes:
Expand Down Expand Up @@ -43704,11 +43710,14 @@ components:
$ref: '#/components/schemas/PatchDegradationRequestDataAttributes'
id:
description: The ID of the degradation.
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
$ref: '#/components/schemas/PatchDegradationRequestDataType'
required:
- attributes
- id
- type
type: object
PatchDegradationRequestDataAttributes:
Expand Down Expand Up @@ -43739,7 +43748,7 @@ components:
properties:
id:
description: The ID of the component. Must be a component of type `component`.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -43844,11 +43853,14 @@ components:
$ref: '#/components/schemas/PatchStatusPageRequestDataAttributes'
id:
description: The ID of the status page.
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
$ref: '#/components/schemas/StatusPageDataType'
required:
- attributes
- id
- type
type: object
PatchStatusPageRequestDataAttributes:
Expand Down Expand Up @@ -58776,7 +58788,7 @@ components:
properties:
id:
description: The ID of the group the component belongs to.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -58815,7 +58827,7 @@ components:
properties:
id:
description: The ID of the status page the component belongs to.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -58957,7 +58969,7 @@ components:
nullable: true
properties:
id:
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -58999,7 +59011,7 @@ components:
properties:
id:
description: The ID of the status page.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,26 @@ def openapi_types(_):

def __init__(
self_,
attributes: CreateComponentRequestDataAttributes,
type: StatusPagesComponentGroupType,
attributes: Union[CreateComponentRequestDataAttributes, UnsetType] = unset,
relationships: Union[CreateComponentRequestDataRelationships, UnsetType] = unset,
**kwargs,
):
"""


:param attributes: The supported attributes for creating a component.
:type attributes: CreateComponentRequestDataAttributes, optional
:type attributes: CreateComponentRequestDataAttributes

:param relationships: The supported relationships for creating a component.
:type relationships: CreateComponentRequestDataRelationships, optional

:param type: Components resource type.
:type type: StatusPagesComponentGroupType
"""
if attributes is not unset:
kwargs["attributes"] = attributes
if relationships is not unset:
kwargs["relationships"] = relationships
super().__init__(kwargs)

self_.attributes = attributes
self_.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


Expand Down Expand Up @@ -39,22 +37,18 @@ def openapi_types(_):
}

def __init__(
self_,
type: PatchDegradationRequestDataType,
attributes: Union[CreateDegradationRequestDataAttributes, UnsetType] = unset,
**kwargs,
self_, attributes: CreateDegradationRequestDataAttributes, type: PatchDegradationRequestDataType, **kwargs
):
"""


:param attributes: The supported attributes for creating a degradation.
:type attributes: CreateDegradationRequestDataAttributes, optional
:type attributes: CreateDegradationRequestDataAttributes

:param type: Degradations resource type.
:type type: PatchDegradationRequestDataType
"""
if attributes is not unset:
kwargs["attributes"] = attributes
super().__init__(kwargs)

self_.attributes = attributes
self_.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


Expand Down Expand Up @@ -38,23 +36,17 @@ def openapi_types(_):
"type": "type",
}

def __init__(
self_,
type: StatusPageDataType,
attributes: Union[CreateStatusPageRequestDataAttributes, UnsetType] = unset,
**kwargs,
):
def __init__(self_, attributes: CreateStatusPageRequestDataAttributes, type: StatusPageDataType, **kwargs):
"""


:param attributes: The supported attributes for creating a status page.
:type attributes: CreateStatusPageRequestDataAttributes, optional
:type attributes: CreateStatusPageRequestDataAttributes

:param type: Status pages resource type.
:type type: StatusPageDataType
"""
if attributes is not unset:
kwargs["attributes"] = attributes
super().__init__(kwargs)

self_.attributes = attributes
self_.type = type
20 changes: 6 additions & 14 deletions src/datadog_api_client/v2/model/patch_component_request_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
UUID,
)

Expand Down Expand Up @@ -40,28 +38,22 @@ def openapi_types(_):
}

def __init__(
self_,
type: StatusPagesComponentGroupType,
attributes: Union[PatchComponentRequestDataAttributes, UnsetType] = unset,
id: Union[UUID, UnsetType] = unset,
**kwargs,
self_, attributes: PatchComponentRequestDataAttributes, id: UUID, type: StatusPagesComponentGroupType, **kwargs
):
"""


:param attributes: The supported attributes for updating a component.
:type attributes: PatchComponentRequestDataAttributes, optional
:type attributes: PatchComponentRequestDataAttributes

:param id: The ID of the component.
:type id: UUID, optional
:type id: UUID

:param type: Components resource type.
:type type: StatusPagesComponentGroupType
"""
if attributes is not unset:
kwargs["attributes"] = attributes
if id is not unset:
kwargs["id"] = id
super().__init__(kwargs)

self_.attributes = attributes
self_.id = id
self_.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
UUID,
)

Expand Down Expand Up @@ -43,27 +41,25 @@ def openapi_types(_):

def __init__(
self_,
attributes: PatchDegradationRequestDataAttributes,
id: UUID,
type: PatchDegradationRequestDataType,
attributes: Union[PatchDegradationRequestDataAttributes, UnsetType] = unset,
id: Union[UUID, UnsetType] = unset,
**kwargs,
):
"""


:param attributes: The supported attributes for updating a degradation.
:type attributes: PatchDegradationRequestDataAttributes, optional
:type attributes: PatchDegradationRequestDataAttributes

:param id: The ID of the degradation.
:type id: UUID, optional
:type id: UUID

:param type: Degradations resource type.
:type type: PatchDegradationRequestDataType
"""
if attributes is not unset:
kwargs["attributes"] = attributes
if id is not unset:
kwargs["id"] = id
super().__init__(kwargs)

self_.attributes = attributes
self_.id = id
self_.type = type
Loading