diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a5b1012c5d..94872e8769 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -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. @@ -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" @@ -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: @@ -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: @@ -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" @@ -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: diff --git a/src/datadog_api_client/v2/model/action_connection_attributes.py b/src/datadog_api_client/v2/model/action_connection_attributes.py index 8d3a7e2447..495113ab94 100644 --- a/src/datadog_api_client/v2/model/action_connection_attributes.py +++ b/src/datadog_api_client/v2/model/action_connection_attributes.py @@ -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, ) @@ -47,11 +49,13 @@ def openapi_types(_): return { "integration": (ActionConnectionIntegration,), "name": (str,), + "tags": ([str],), } attribute_map = { "integration": "integration", "name": "name", + "tags": "tags", } def __init__( @@ -84,6 +88,7 @@ def __init__( VirusTotalIntegration, ], name: str, + tags: Union[List[str], UnsetType] = unset, **kwargs, ): """ @@ -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 diff --git a/src/datadog_api_client/v2/model/action_connection_attributes_update.py b/src/datadog_api_client/v2/model/action_connection_attributes_update.py index 2cc20fb155..99da5a6b8d 100644 --- a/src/datadog_api_client/v2/model/action_connection_attributes_update.py +++ b/src/datadog_api_client/v2/model/action_connection_attributes_update.py @@ -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, @@ -49,11 +49,13 @@ def openapi_types(_): return { "integration": (ActionConnectionIntegrationUpdate,), "name": (str,), + "tags": ([str],), } attribute_map = { "integration": "integration", "name": "name", + "tags": "tags", } def __init__( @@ -87,6 +89,7 @@ def __init__( UnsetType, ] = unset, name: Union[str, UnsetType] = unset, + tags: Union[List[str], UnsetType] = unset, **kwargs, ): """ @@ -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)