Skip to content
Open
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
39 changes: 39 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4241,6 +4241,18 @@ components:
description: Name of the connection
example: My AWS Connection
type: string
tags:
description: |-
Tags associated with the connection. Each tag must follow the `key:value` format.
The `default` tag key is reserved.
example:
- env:prod
- team:action-platform
items:
description: A non-reserved tag in `key:value` format.
pattern: "^(?!default:)[A-Za-z0-9._/-]+:[A-Za-z0-9._/-]+$"
type: string
type: array
required:
- name
- integration
Expand All @@ -4254,6 +4266,18 @@ components:
description: Name of the connection
example: My AWS Connection
type: string
tags:
description: |-
Tags associated with the connection. Each tag must follow the `key:value` format.
The `default` tag key is reserved.
example:
- env:prod
- team:action-platform
items:
description: A non-reserved tag in `key:value` format.
pattern: "^(?!default:)[A-Za-z0-9._/-]+:[A-Za-z0-9._/-]+$"
type: string
type: array
type: object
ActionConnectionData:
description: Data related to the connection.
Expand Down Expand Up @@ -121471,6 +121495,9 @@ paths:
type: AWSAssumeRole
type: AWS
name: My AWS Connection
tags:
- env:prod
- team:action-platform
type: action_connection
schema:
$ref: "#/components/schemas/CreateActionConnectionRequest"
Expand All @@ -121487,6 +121514,9 @@ paths:
integration:
type: AWS
name: My AWS Connection
tags:
- env:prod
- team:action-platform
id: 00000000-0000-0000-0000-000000000001
type: action_connection
schema:
Expand Down Expand Up @@ -121564,6 +121594,9 @@ paths:
integration:
type: AWS
name: My AWS Connection
tags:
- env:prod
- team:action-platform
id: 00000000-0000-0000-0000-000000000002
type: action_connection
schema:
Expand Down Expand Up @@ -121612,6 +121645,9 @@ paths:
integration:
type: AWS
name: My AWS Connection
tags:
- env:prod
- team:action-platform
type: action_connection
schema:
$ref: "#/components/schemas/UpdateActionConnectionRequest"
Expand All @@ -121629,6 +121665,9 @@ paths:
integration:
type: AWS
name: My AWS Connection
tags:
- env:prod
- team:action-platform
id: 00000000-0000-0000-0000-000000000003
type: action_connection
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

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


Expand Down Expand Up @@ -47,11 +49,13 @@ def openapi_types(_):
return {
"integration": (ActionConnectionIntegration,),
"name": (str,),
"tags": ([str],),
}

attribute_map = {
"integration": "integration",
"name": "name",
"tags": "tags",
}

def __init__(
Expand Down Expand Up @@ -84,6 +88,7 @@ def __init__(
VirusTotalIntegration,
],
name: str,
tags: Union[List[str], UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -94,7 +99,13 @@ def __init__(

:param name: Name of the connection
:type name: str

:param tags: Tags associated with the connection. Each tag must follow the ``key:value`` format.
The ``default`` tag key is reserved.
:type tags: [str], optional
"""
if tags is not unset:
kwargs["tags"] = tags
super().__init__(kwargs)

self_.integration = integration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
Expand Down Expand Up @@ -49,11 +49,13 @@ def openapi_types(_):
return {
"integration": (ActionConnectionIntegrationUpdate,),
"name": (str,),
"tags": ([str],),
}

attribute_map = {
"integration": "integration",
"name": "name",
"tags": "tags",
}

def __init__(
Expand Down Expand Up @@ -87,6 +89,7 @@ def __init__(
UnsetType,
] = unset,
name: Union[str, UnsetType] = unset,
tags: Union[List[str], UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -97,9 +100,15 @@ def __init__(

:param name: Name of the connection
:type name: str, optional

:param tags: Tags associated with the connection. Each tag must follow the ``key:value`` format.
The ``default`` tag key is reserved.
:type tags: [str], optional
"""
if integration is not unset:
kwargs["integration"] = integration
if name is not unset:
kwargs["name"] = name
if tags is not unset:
kwargs["tags"] = tags
super().__init__(kwargs)
Loading