From 543c488320782cea894693feb6a4cfe3a9da1023 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 15 May 2026 17:35:08 +0000 Subject: [PATCH] Regenerate client from commit a7498ea of spec repo --- .generator/schemas/v2/openapi.yaml | 455 ++++++++++++++++++ docs/datadog_api_client.v2.model.rst | 84 ++++ examples/v2/app-builder/GetBlueprint.py | 16 + .../GetBlueprintsByIntegrationId.py | 15 + .../v2/app-builder/GetBlueprintsBySlugs.py | 15 + examples/v2/app-builder/ListBlueprints.py | 13 + examples/v2/app-builder/ListTags.py | 13 + .../v2/api/app_builder_api.py | 204 ++++++++ .../model/app_builder_list_tags_response.py | 42 ++ .../v2/model/blueprint_attributes.py | 196 ++++++++ .../v2/model/blueprint_data.py | 55 +++ .../v2/model/blueprint_data_type.py | 35 ++ .../v2/model/blueprint_metadata_attributes.py | 93 ++++ .../v2/model/blueprint_metadata_data.py | 55 +++ .../v2/model/blueprint_native_action.py | 17 + .../v2/model/get_blueprint_response.py | 42 ++ .../v2/model/get_blueprints_response.py | 42 ++ .../v2/model/list_blueprints_response.py | 42 ++ src/datadog_api_client/v2/model/tag_data.py | 46 ++ .../v2/model/tag_data_type.py | 35 ++ src/datadog_api_client/v2/models/__init__.py | 24 + tests/v2/features/app_builder.feature | 40 ++ tests/v2/features/undo.json | 30 ++ 23 files changed, 1609 insertions(+) create mode 100644 examples/v2/app-builder/GetBlueprint.py create mode 100644 examples/v2/app-builder/GetBlueprintsByIntegrationId.py create mode 100644 examples/v2/app-builder/GetBlueprintsBySlugs.py create mode 100644 examples/v2/app-builder/ListBlueprints.py create mode 100644 examples/v2/app-builder/ListTags.py create mode 100644 src/datadog_api_client/v2/model/app_builder_list_tags_response.py create mode 100644 src/datadog_api_client/v2/model/blueprint_attributes.py create mode 100644 src/datadog_api_client/v2/model/blueprint_data.py create mode 100644 src/datadog_api_client/v2/model/blueprint_data_type.py create mode 100644 src/datadog_api_client/v2/model/blueprint_metadata_attributes.py create mode 100644 src/datadog_api_client/v2/model/blueprint_metadata_data.py create mode 100644 src/datadog_api_client/v2/model/blueprint_native_action.py create mode 100644 src/datadog_api_client/v2/model/get_blueprint_response.py create mode 100644 src/datadog_api_client/v2/model/get_blueprints_response.py create mode 100644 src/datadog_api_client/v2/model/list_blueprints_response.py create mode 100644 src/datadog_api_client/v2/model/tag_data.py create mode 100644 src/datadog_api_client/v2/model/tag_data_type.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 39623cac69..727f58f890 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -4657,6 +4657,15 @@ components: - OPENURL - DOWNLOADFILE - SETSTATEVARIABLEVALUE + AppBuilderListTagsResponse: + description: The response for listing tags associated with apps. + properties: + data: + description: An array of tags. + items: + $ref: "#/components/schemas/TagData" + type: array + type: object AppDefinitionType: default: appDefinitions description: The app definition type. @@ -8891,6 +8900,161 @@ components: data: $ref: "#/components/schemas/BillingDimensionsMappingBody" type: object + BlueprintAttributes: + description: The attributes of a blueprint resource. + properties: + created_at: + description: The timestamp when the blueprint was created. + example: "" + format: date-time + type: string + definition: + $ref: "#/components/schemas/AppDefinitionType" + description: + description: A description of what the blueprint does. + example: "" + type: string + embedded_datastore_blueprints: + additionalProperties: {} + description: Embedded datastore blueprints. + type: object + embedded_native_actions: + description: Embedded native actions. + items: + $ref: "#/components/schemas/BlueprintNativeAction" + type: array + embedded_workflow_blueprints: + additionalProperties: {} + description: Embedded workflow blueprints. + type: object + integration_id: + description: The integration ID associated with the blueprint. + type: string + mocked_outputs: + additionalProperties: {} + description: Mocked outputs for testing the blueprint. + type: object + name: + description: The human-readable name of the blueprint. + example: AWS Service Manager + type: string + slug: + description: The unique slug identifier of the blueprint. + example: aws-service-manager + type: string + tags: + description: Tags associated with the blueprint. + items: + type: string + type: array + tile_background: + description: The background style of the blueprint tile. + type: string + tile_icon_action_fqn: + description: The fully qualified name of the action used as the tile icon. + type: string + updated_at: + description: The timestamp when the blueprint was last updated. + example: "" + format: date-time + type: string + required: + - slug + - name + - description + - definition + - created_at + - updated_at + type: object + BlueprintData: + description: A blueprint resource. + properties: + attributes: + $ref: "#/components/schemas/BlueprintAttributes" + id: + description: The ID of the blueprint. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid + type: string + type: + $ref: "#/components/schemas/BlueprintDataType" + required: + - id + - type + - attributes + type: object + BlueprintDataType: + description: The resource type for a blueprint. + enum: + - blueprint + example: blueprint + type: string + x-enum-varnames: + - BLUEPRINT + BlueprintMetadataAttributes: + description: The attributes of a blueprint metadata resource. + properties: + created_at: + description: The timestamp when the blueprint was created. + example: "" + format: date-time + type: string + description: + description: A description of what the blueprint does. + example: "" + type: string + name: + description: The human-readable name of the blueprint. + example: AWS Service Manager + type: string + slug: + description: The unique slug identifier of the blueprint. + example: aws-service-manager + type: string + tags: + description: Tags associated with the blueprint. + items: + type: string + type: array + tile_background: + description: The background style of the blueprint tile. + type: string + tile_icon_action_fqn: + description: The fully qualified name of the action used as the tile icon. + type: string + updated_at: + description: The timestamp when the blueprint was last updated. + example: "" + format: date-time + type: string + required: + - slug + - name + - description + - created_at + - updated_at + type: object + BlueprintMetadataData: + description: A blueprint metadata resource. + properties: + attributes: + $ref: "#/components/schemas/BlueprintMetadataAttributes" + id: + description: The ID of the blueprint. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid + type: string + type: + $ref: "#/components/schemas/BlueprintDataType" + required: + - id + - type + - attributes + type: object + BlueprintNativeAction: + additionalProperties: {} + description: An embedded native action in a blueprint. + type: object BranchCoverageSummaryRequest: description: Request object for getting code coverage summary for a branch. properties: @@ -32282,6 +32446,21 @@ components: type: string type: array type: object + GetBlueprintResponse: + description: The response for retrieving a single blueprint. + properties: + data: + $ref: "#/components/schemas/BlueprintData" + type: object + GetBlueprintsResponse: + description: The response for retrieving multiple blueprints. + properties: + data: + description: An array of blueprints. + items: + $ref: "#/components/schemas/BlueprintData" + type: array + type: object GetCustomFrameworkResponse: description: Response object to get a custom framework. properties: @@ -42410,6 +42589,15 @@ components: required: - data type: object + ListBlueprintsResponse: + description: The response for listing available blueprints. + properties: + data: + description: An array of blueprint metadata. + items: + $ref: "#/components/schemas/BlueprintMetadataData" + type: array + type: object ListCampaignsResponse: description: Response containing a list of campaigns. properties: @@ -78435,6 +78623,27 @@ components: - type - id type: object + TagData: + description: A tag resource associated with an app. + properties: + id: + description: The name of the tag. + example: production + type: string + type: + $ref: "#/components/schemas/TagDataType" + required: + - id + - type + type: object + TagDataType: + description: The resource type for a tag. + enum: + - tag + example: tag + type: string + x-enum-varnames: + - TAG TagsEventAttribute: description: Array of tags associated with your event. example: ["team:A"] @@ -91593,6 +91802,252 @@ paths: permissions: - apps_run - connections_read + "/api/v2/app-builder/blueprint/{blueprint_id}": + get: + description: Retrieve an app blueprint by its ID. + operationId: GetBlueprint + parameters: + - description: The ID of the blueprint to retrieve. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + in: path + name: blueprint_id + required: true + schema: + format: uuid + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + created_at: "2024-01-01T00:00:00Z" + definition: {} + description: Manage your AWS services from Datadog. + name: AWS Service Manager + slug: aws-service-manager + updated_at: "2024-01-01T00:00:00Z" + id: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + type: blueprint + schema: + $ref: "#/components/schemas/GetBlueprintResponse" + description: OK + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get Blueprint + tags: + - App Builder + "x-permission": + operator: OR + permissions: + - apps_run + - apps_write + - connections_read + - connections_write + /api/v2/app-builder/blueprints: + get: + description: List available app blueprints. + operationId: ListBlueprints + parameters: + - description: The number of blueprints to return per page. Defaults to 10. Maximum is 100. + in: query + name: limit + required: false + schema: + format: int64 + type: integer + - description: The page of results to return. Starts at 0. + in: query + name: page + required: false + schema: + format: int64 + type: integer + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + created_at: "2024-01-01T00:00:00Z" + description: Manage your AWS services from Datadog. + name: AWS Service Manager + slug: aws-service-manager + updated_at: "2024-01-01T00:00:00Z" + id: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + type: blueprint + schema: + $ref: "#/components/schemas/ListBlueprintsResponse" + description: OK + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List Blueprints + tags: + - App Builder + "x-permission": + operator: OR + permissions: + - apps_run + - apps_write + - connections_read + - connections_write + "/api/v2/app-builder/blueprints/integration-id/{integration_id}": + get: + description: List app blueprints associated with a specific integration ID. + operationId: GetBlueprintsByIntegrationId + parameters: + - description: The integration ID to filter blueprints by. + example: aws + in: path + name: integration_id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + created_at: "2024-01-01T00:00:00Z" + definition: {} + description: Manage your AWS services from Datadog. + integration_id: aws + name: AWS Service Manager + slug: aws-service-manager + updated_at: "2024-01-01T00:00:00Z" + id: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + type: blueprint + schema: + $ref: "#/components/schemas/GetBlueprintsResponse" + description: OK + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get Blueprints by Integration ID + tags: + - App Builder + "x-permission": + operator: OR + permissions: + - apps_run + - apps_write + - connections_read + - connections_write + "/api/v2/app-builder/blueprints/slugs/{slugs}": + get: + description: Retrieve app blueprints by their slugs. + operationId: GetBlueprintsBySlugs + parameters: + - description: A comma-separated list of blueprint slugs. + example: aws-service-manager + in: path + name: slugs + required: true + schema: + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + created_at: "2024-01-01T00:00:00Z" + definition: {} + description: Manage your AWS services from Datadog. + name: AWS Service Manager + slug: aws-service-manager + updated_at: "2024-01-01T00:00:00Z" + id: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + type: blueprint + schema: + $ref: "#/components/schemas/GetBlueprintsResponse" + description: OK + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get Blueprints by Slugs + tags: + - App Builder + "x-permission": + operator: OR + permissions: + - apps_run + - apps_write + - connections_read + - connections_write + /api/v2/app-builder/tags: + get: + description: List all tags associated with the authenticated user's apps. + operationId: ListTags + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - id: production + type: tag + schema: + $ref: "#/components/schemas/AppBuilderListTagsResponse" + description: OK + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List Tags + tags: + - App Builder + "x-permission": + operator: OR + permissions: + - apps_run /api/v2/application_keys: get: description: List all application keys available for your org diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index ef362a0afc..21cba3b5b9 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -767,6 +767,13 @@ datadog\_api\_client.v2.model.app\_builder\_event\_type module :members: :show-inheritance: +datadog\_api\_client.v2.model.app\_builder\_list\_tags\_response module +----------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.app_builder_list_tags_response + :members: + :show-inheritance: + datadog\_api\_client.v2.model.app\_definition\_type module ---------------------------------------------------------- @@ -3203,6 +3210,48 @@ datadog\_api\_client.v2.model.billing\_dimensions\_mapping\_response module :members: :show-inheritance: +datadog\_api\_client.v2.model.blueprint\_attributes module +---------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.blueprint_attributes + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.blueprint\_data module +---------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.blueprint_data + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.blueprint\_data\_type module +---------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.blueprint_data_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.blueprint\_metadata\_attributes module +-------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.blueprint_metadata_attributes + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.blueprint\_metadata\_data module +-------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.blueprint_metadata_data + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.blueprint\_native\_action module +-------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.blueprint_native_action + :members: + :show-inheritance: + datadog\_api\_client.v2.model.branch\_coverage\_summary\_request module ----------------------------------------------------------------------- @@ -13213,6 +13262,20 @@ datadog\_api\_client.v2.model.get\_app\_response\_data\_attributes module :members: :show-inheritance: +datadog\_api\_client.v2.model.get\_blueprint\_response module +------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.get_blueprint_response + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.get\_blueprints\_response module +-------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.get_blueprints_response + :members: + :show-inheritance: + datadog\_api\_client.v2.model.get\_custom\_framework\_response module --------------------------------------------------------------------- @@ -16972,6 +17035,13 @@ datadog\_api\_client.v2.model.list\_assets\_sbo\_ms\_response module :members: :show-inheritance: +datadog\_api\_client.v2.model.list\_blueprints\_response module +--------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.list_blueprints_response + :members: + :show-inheritance: + datadog\_api\_client.v2.model.list\_campaigns\_response module -------------------------------------------------------------- @@ -34192,6 +34262,20 @@ datadog\_api\_client.v2.model.table\_row\_resource\_identifier module :members: :show-inheritance: +datadog\_api\_client.v2.model.tag\_data module +---------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.tag_data + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.tag\_data\_type module +---------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.tag_data_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.tags\_event\_attribute module ----------------------------------------------------------- diff --git a/examples/v2/app-builder/GetBlueprint.py b/examples/v2/app-builder/GetBlueprint.py new file mode 100644 index 0000000000..93ba1e84ca --- /dev/null +++ b/examples/v2/app-builder/GetBlueprint.py @@ -0,0 +1,16 @@ +""" +Get Blueprint returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.app_builder_api import AppBuilderApi +from uuid import UUID + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = AppBuilderApi(api_client) + response = api_instance.get_blueprint( + blueprint_id=UUID("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"), + ) + + print(response) diff --git a/examples/v2/app-builder/GetBlueprintsByIntegrationId.py b/examples/v2/app-builder/GetBlueprintsByIntegrationId.py new file mode 100644 index 0000000000..3d531190f6 --- /dev/null +++ b/examples/v2/app-builder/GetBlueprintsByIntegrationId.py @@ -0,0 +1,15 @@ +""" +Get Blueprints by Integration ID returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.app_builder_api import AppBuilderApi + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = AppBuilderApi(api_client) + response = api_instance.get_blueprints_by_integration_id( + integration_id="aws", + ) + + print(response) diff --git a/examples/v2/app-builder/GetBlueprintsBySlugs.py b/examples/v2/app-builder/GetBlueprintsBySlugs.py new file mode 100644 index 0000000000..9a3a157fe4 --- /dev/null +++ b/examples/v2/app-builder/GetBlueprintsBySlugs.py @@ -0,0 +1,15 @@ +""" +Get Blueprints by Slugs returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.app_builder_api import AppBuilderApi + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = AppBuilderApi(api_client) + response = api_instance.get_blueprints_by_slugs( + slugs="aws-service-manager", + ) + + print(response) diff --git a/examples/v2/app-builder/ListBlueprints.py b/examples/v2/app-builder/ListBlueprints.py new file mode 100644 index 0000000000..7bbc26dd5c --- /dev/null +++ b/examples/v2/app-builder/ListBlueprints.py @@ -0,0 +1,13 @@ +""" +List Blueprints returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.app_builder_api import AppBuilderApi + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = AppBuilderApi(api_client) + response = api_instance.list_blueprints() + + print(response) diff --git a/examples/v2/app-builder/ListTags.py b/examples/v2/app-builder/ListTags.py new file mode 100644 index 0000000000..a37c25e1bf --- /dev/null +++ b/examples/v2/app-builder/ListTags.py @@ -0,0 +1,13 @@ +""" +List Tags returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.app_builder_api import AppBuilderApi + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = AppBuilderApi(api_client) + response = api_instance.list_tags() + + print(response) diff --git a/src/datadog_api_client/v2/api/app_builder_api.py b/src/datadog_api_client/v2/api/app_builder_api.py index 416927e549..9d3ce802ce 100644 --- a/src/datadog_api_client/v2/api/app_builder_api.py +++ b/src/datadog_api_client/v2/api/app_builder_api.py @@ -31,6 +31,10 @@ from datadog_api_client.v2.model.update_app_tags_request import UpdateAppTagsRequest from datadog_api_client.v2.model.update_app_version_name_request import UpdateAppVersionNameRequest from datadog_api_client.v2.model.list_app_versions_response import ListAppVersionsResponse +from datadog_api_client.v2.model.get_blueprint_response import GetBlueprintResponse +from datadog_api_client.v2.model.list_blueprints_response import ListBlueprintsResponse +from datadog_api_client.v2.model.get_blueprints_response import GetBlueprintsResponse +from datadog_api_client.v2.model.app_builder_list_tags_response import AppBuilderListTagsResponse class AppBuilderApi: @@ -160,6 +164,75 @@ def __init__(self, api_client=None): api_client=api_client, ) + self._get_blueprint_endpoint = _Endpoint( + settings={ + "response_type": (GetBlueprintResponse,), + "auth": ["apiKeyAuth", "appKeyAuth"], + "endpoint_path": "/api/v2/app-builder/blueprint/{blueprint_id}", + "operation_id": "get_blueprint", + "http_method": "GET", + "version": "v2", + }, + params_map={ + "blueprint_id": { + "required": True, + "openapi_types": (UUID,), + "attribute": "blueprint_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._get_blueprints_by_integration_id_endpoint = _Endpoint( + settings={ + "response_type": (GetBlueprintsResponse,), + "auth": ["apiKeyAuth", "appKeyAuth"], + "endpoint_path": "/api/v2/app-builder/blueprints/integration-id/{integration_id}", + "operation_id": "get_blueprints_by_integration_id", + "http_method": "GET", + "version": "v2", + }, + params_map={ + "integration_id": { + "required": True, + "openapi_types": (str,), + "attribute": "integration_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._get_blueprints_by_slugs_endpoint = _Endpoint( + settings={ + "response_type": (GetBlueprintsResponse,), + "auth": ["apiKeyAuth", "appKeyAuth"], + "endpoint_path": "/api/v2/app-builder/blueprints/slugs/{slugs}", + "operation_id": "get_blueprints_by_slugs", + "http_method": "GET", + "version": "v2", + }, + params_map={ + "slugs": { + "required": True, + "openapi_types": (str,), + "attribute": "slugs", + "location": "path", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + self._list_apps_endpoint = _Endpoint( settings={ "response_type": (ListAppsResponse,), @@ -266,6 +339,49 @@ def __init__(self, api_client=None): api_client=api_client, ) + self._list_blueprints_endpoint = _Endpoint( + settings={ + "response_type": (ListBlueprintsResponse,), + "auth": ["apiKeyAuth", "appKeyAuth"], + "endpoint_path": "/api/v2/app-builder/blueprints", + "operation_id": "list_blueprints", + "http_method": "GET", + "version": "v2", + }, + params_map={ + "limit": { + "openapi_types": (int,), + "attribute": "limit", + "location": "query", + }, + "page": { + "openapi_types": (int,), + "attribute": "page", + "location": "query", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._list_tags_endpoint = _Endpoint( + settings={ + "response_type": (AppBuilderListTagsResponse,), + "auth": ["apiKeyAuth", "appKeyAuth"], + "endpoint_path": "/api/v2/app-builder/tags", + "operation_id": "list_tags", + "http_method": "GET", + "version": "v2", + }, + params_map={}, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + self._publish_app_endpoint = _Endpoint( settings={ "response_type": (PublishAppResponse,), @@ -597,6 +713,57 @@ def get_app( return self._get_app_endpoint.call_with_http_info(**kwargs) + def get_blueprint( + self, + blueprint_id: UUID, + ) -> GetBlueprintResponse: + """Get Blueprint. + + Retrieve an app blueprint by its ID. + + :param blueprint_id: The ID of the blueprint to retrieve. + :type blueprint_id: UUID + :rtype: GetBlueprintResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["blueprint_id"] = blueprint_id + + return self._get_blueprint_endpoint.call_with_http_info(**kwargs) + + def get_blueprints_by_integration_id( + self, + integration_id: str, + ) -> GetBlueprintsResponse: + """Get Blueprints by Integration ID. + + List app blueprints associated with a specific integration ID. + + :param integration_id: The integration ID to filter blueprints by. + :type integration_id: str + :rtype: GetBlueprintsResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["integration_id"] = integration_id + + return self._get_blueprints_by_integration_id_endpoint.call_with_http_info(**kwargs) + + def get_blueprints_by_slugs( + self, + slugs: str, + ) -> GetBlueprintsResponse: + """Get Blueprints by Slugs. + + Retrieve app blueprints by their slugs. + + :param slugs: A comma-separated list of blueprint slugs. + :type slugs: str + :rtype: GetBlueprintsResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["slugs"] = slugs + + return self._get_blueprints_by_slugs_endpoint.call_with_http_info(**kwargs) + def list_apps( self, *, @@ -706,6 +873,43 @@ def list_app_versions( return self._list_app_versions_endpoint.call_with_http_info(**kwargs) + def list_blueprints( + self, + *, + limit: Union[int, UnsetType] = unset, + page: Union[int, UnsetType] = unset, + ) -> ListBlueprintsResponse: + """List Blueprints. + + List available app blueprints. + + :param limit: The number of blueprints to return per page. Defaults to 10. Maximum is 100. + :type limit: int, optional + :param page: The page of results to return. Starts at 0. + :type page: int, optional + :rtype: ListBlueprintsResponse + """ + kwargs: Dict[str, Any] = {} + if limit is not unset: + kwargs["limit"] = limit + + if page is not unset: + kwargs["page"] = page + + return self._list_blueprints_endpoint.call_with_http_info(**kwargs) + + def list_tags( + self, + ) -> AppBuilderListTagsResponse: + """List Tags. + + List all tags associated with the authenticated user's apps. + + :rtype: AppBuilderListTagsResponse + """ + kwargs: Dict[str, Any] = {} + return self._list_tags_endpoint.call_with_http_info(**kwargs) + def publish_app( self, app_id: UUID, diff --git a/src/datadog_api_client/v2/model/app_builder_list_tags_response.py b/src/datadog_api_client/v2/model/app_builder_list_tags_response.py new file mode 100644 index 0000000000..5a0a937f89 --- /dev/null +++ b/src/datadog_api_client/v2/model/app_builder_list_tags_response.py @@ -0,0 +1,42 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.tag_data import TagData + + +class AppBuilderListTagsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.tag_data import TagData + + return { + "data": ([TagData],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: Union[List[TagData], UnsetType] = unset, **kwargs): + """ + The response for listing tags associated with apps. + + :param data: An array of tags. + :type data: [TagData], optional + """ + if data is not unset: + kwargs["data"] = data + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/blueprint_attributes.py b/src/datadog_api_client/v2/model/blueprint_attributes.py new file mode 100644 index 0000000000..30d1d0790c --- /dev/null +++ b/src/datadog_api_client/v2/model/blueprint_attributes.py @@ -0,0 +1,196 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Any, Dict, List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + date, + datetime, + none_type, + unset, + UnsetType, + UUID, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.app_definition_type import AppDefinitionType + from datadog_api_client.v2.model.blueprint_native_action import BlueprintNativeAction + + +class BlueprintAttributes(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.app_definition_type import AppDefinitionType + from datadog_api_client.v2.model.blueprint_native_action import BlueprintNativeAction + + return { + "created_at": (datetime,), + "definition": (AppDefinitionType,), + "description": (str,), + "embedded_datastore_blueprints": ( + { + str: ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + UUID, + none_type, + ) + }, + ), + "embedded_native_actions": ([BlueprintNativeAction],), + "embedded_workflow_blueprints": ( + { + str: ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + UUID, + none_type, + ) + }, + ), + "integration_id": (str,), + "mocked_outputs": ( + { + str: ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + UUID, + none_type, + ) + }, + ), + "name": (str,), + "slug": (str,), + "tags": ([str],), + "tile_background": (str,), + "tile_icon_action_fqn": (str,), + "updated_at": (datetime,), + } + + attribute_map = { + "created_at": "created_at", + "definition": "definition", + "description": "description", + "embedded_datastore_blueprints": "embedded_datastore_blueprints", + "embedded_native_actions": "embedded_native_actions", + "embedded_workflow_blueprints": "embedded_workflow_blueprints", + "integration_id": "integration_id", + "mocked_outputs": "mocked_outputs", + "name": "name", + "slug": "slug", + "tags": "tags", + "tile_background": "tile_background", + "tile_icon_action_fqn": "tile_icon_action_fqn", + "updated_at": "updated_at", + } + + def __init__( + self_, + created_at: datetime, + definition: AppDefinitionType, + description: str, + name: str, + slug: str, + updated_at: datetime, + embedded_datastore_blueprints: Union[Dict[str, Any], UnsetType] = unset, + embedded_native_actions: Union[List[BlueprintNativeAction], UnsetType] = unset, + embedded_workflow_blueprints: Union[Dict[str, Any], UnsetType] = unset, + integration_id: Union[str, UnsetType] = unset, + mocked_outputs: Union[Dict[str, Any], UnsetType] = unset, + tags: Union[List[str], UnsetType] = unset, + tile_background: Union[str, UnsetType] = unset, + tile_icon_action_fqn: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The attributes of a blueprint resource. + + :param created_at: The timestamp when the blueprint was created. + :type created_at: datetime + + :param definition: The app definition type. + :type definition: AppDefinitionType + + :param description: A description of what the blueprint does. + :type description: str + + :param embedded_datastore_blueprints: Embedded datastore blueprints. + :type embedded_datastore_blueprints: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, optional + + :param embedded_native_actions: Embedded native actions. + :type embedded_native_actions: [BlueprintNativeAction], optional + + :param embedded_workflow_blueprints: Embedded workflow blueprints. + :type embedded_workflow_blueprints: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, optional + + :param integration_id: The integration ID associated with the blueprint. + :type integration_id: str, optional + + :param mocked_outputs: Mocked outputs for testing the blueprint. + :type mocked_outputs: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, optional + + :param name: The human-readable name of the blueprint. + :type name: str + + :param slug: The unique slug identifier of the blueprint. + :type slug: str + + :param tags: Tags associated with the blueprint. + :type tags: [str], optional + + :param tile_background: The background style of the blueprint tile. + :type tile_background: str, optional + + :param tile_icon_action_fqn: The fully qualified name of the action used as the tile icon. + :type tile_icon_action_fqn: str, optional + + :param updated_at: The timestamp when the blueprint was last updated. + :type updated_at: datetime + """ + if embedded_datastore_blueprints is not unset: + kwargs["embedded_datastore_blueprints"] = embedded_datastore_blueprints + if embedded_native_actions is not unset: + kwargs["embedded_native_actions"] = embedded_native_actions + if embedded_workflow_blueprints is not unset: + kwargs["embedded_workflow_blueprints"] = embedded_workflow_blueprints + if integration_id is not unset: + kwargs["integration_id"] = integration_id + if mocked_outputs is not unset: + kwargs["mocked_outputs"] = mocked_outputs + if tags is not unset: + kwargs["tags"] = tags + if tile_background is not unset: + kwargs["tile_background"] = tile_background + if tile_icon_action_fqn is not unset: + kwargs["tile_icon_action_fqn"] = tile_icon_action_fqn + super().__init__(kwargs) + + self_.created_at = created_at + self_.definition = definition + self_.description = description + self_.name = name + self_.slug = slug + self_.updated_at = updated_at diff --git a/src/datadog_api_client/v2/model/blueprint_data.py b/src/datadog_api_client/v2/model/blueprint_data.py new file mode 100644 index 0000000000..f3e3404597 --- /dev/null +++ b/src/datadog_api_client/v2/model/blueprint_data.py @@ -0,0 +1,55 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + UUID, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.blueprint_attributes import BlueprintAttributes + from datadog_api_client.v2.model.blueprint_data_type import BlueprintDataType + + +class BlueprintData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.blueprint_attributes import BlueprintAttributes + from datadog_api_client.v2.model.blueprint_data_type import BlueprintDataType + + return { + "attributes": (BlueprintAttributes,), + "id": (UUID,), + "type": (BlueprintDataType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__(self_, attributes: BlueprintAttributes, id: UUID, type: BlueprintDataType, **kwargs): + """ + A blueprint resource. + + :param attributes: The attributes of a blueprint resource. + :type attributes: BlueprintAttributes + + :param id: The ID of the blueprint. + :type id: UUID + + :param type: The resource type for a blueprint. + :type type: BlueprintDataType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/blueprint_data_type.py b/src/datadog_api_client/v2/model/blueprint_data_type.py new file mode 100644 index 0000000000..ca7f5bd828 --- /dev/null +++ b/src/datadog_api_client/v2/model/blueprint_data_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class BlueprintDataType(ModelSimple): + """ + The resource type for a blueprint. + + :param value: If omitted defaults to "blueprint". Must be one of ["blueprint"]. + :type value: str + """ + + allowed_values = { + "blueprint", + } + BLUEPRINT: ClassVar["BlueprintDataType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +BlueprintDataType.BLUEPRINT = BlueprintDataType("blueprint") diff --git a/src/datadog_api_client/v2/model/blueprint_metadata_attributes.py b/src/datadog_api_client/v2/model/blueprint_metadata_attributes.py new file mode 100644 index 0000000000..4f0b14630b --- /dev/null +++ b/src/datadog_api_client/v2/model/blueprint_metadata_attributes.py @@ -0,0 +1,93 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + datetime, + unset, + UnsetType, +) + + +class BlueprintMetadataAttributes(ModelNormal): + @cached_property + def openapi_types(_): + return { + "created_at": (datetime,), + "description": (str,), + "name": (str,), + "slug": (str,), + "tags": ([str],), + "tile_background": (str,), + "tile_icon_action_fqn": (str,), + "updated_at": (datetime,), + } + + attribute_map = { + "created_at": "created_at", + "description": "description", + "name": "name", + "slug": "slug", + "tags": "tags", + "tile_background": "tile_background", + "tile_icon_action_fqn": "tile_icon_action_fqn", + "updated_at": "updated_at", + } + + def __init__( + self_, + created_at: datetime, + description: str, + name: str, + slug: str, + updated_at: datetime, + tags: Union[List[str], UnsetType] = unset, + tile_background: Union[str, UnsetType] = unset, + tile_icon_action_fqn: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The attributes of a blueprint metadata resource. + + :param created_at: The timestamp when the blueprint was created. + :type created_at: datetime + + :param description: A description of what the blueprint does. + :type description: str + + :param name: The human-readable name of the blueprint. + :type name: str + + :param slug: The unique slug identifier of the blueprint. + :type slug: str + + :param tags: Tags associated with the blueprint. + :type tags: [str], optional + + :param tile_background: The background style of the blueprint tile. + :type tile_background: str, optional + + :param tile_icon_action_fqn: The fully qualified name of the action used as the tile icon. + :type tile_icon_action_fqn: str, optional + + :param updated_at: The timestamp when the blueprint was last updated. + :type updated_at: datetime + """ + if tags is not unset: + kwargs["tags"] = tags + if tile_background is not unset: + kwargs["tile_background"] = tile_background + if tile_icon_action_fqn is not unset: + kwargs["tile_icon_action_fqn"] = tile_icon_action_fqn + super().__init__(kwargs) + + self_.created_at = created_at + self_.description = description + self_.name = name + self_.slug = slug + self_.updated_at = updated_at diff --git a/src/datadog_api_client/v2/model/blueprint_metadata_data.py b/src/datadog_api_client/v2/model/blueprint_metadata_data.py new file mode 100644 index 0000000000..3475681df1 --- /dev/null +++ b/src/datadog_api_client/v2/model/blueprint_metadata_data.py @@ -0,0 +1,55 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + UUID, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.blueprint_metadata_attributes import BlueprintMetadataAttributes + from datadog_api_client.v2.model.blueprint_data_type import BlueprintDataType + + +class BlueprintMetadataData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.blueprint_metadata_attributes import BlueprintMetadataAttributes + from datadog_api_client.v2.model.blueprint_data_type import BlueprintDataType + + return { + "attributes": (BlueprintMetadataAttributes,), + "id": (UUID,), + "type": (BlueprintDataType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__(self_, attributes: BlueprintMetadataAttributes, id: UUID, type: BlueprintDataType, **kwargs): + """ + A blueprint metadata resource. + + :param attributes: The attributes of a blueprint metadata resource. + :type attributes: BlueprintMetadataAttributes + + :param id: The ID of the blueprint. + :type id: UUID + + :param type: The resource type for a blueprint. + :type type: BlueprintDataType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/blueprint_native_action.py b/src/datadog_api_client/v2/model/blueprint_native_action.py new file mode 100644 index 0000000000..59a8109d46 --- /dev/null +++ b/src/datadog_api_client/v2/model/blueprint_native_action.py @@ -0,0 +1,17 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, +) + + +class BlueprintNativeAction(ModelNormal): + def __init__(self_, **kwargs): + """ + An embedded native action in a blueprint. + """ + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/get_blueprint_response.py b/src/datadog_api_client/v2/model/get_blueprint_response.py new file mode 100644 index 0000000000..b094098939 --- /dev/null +++ b/src/datadog_api_client/v2/model/get_blueprint_response.py @@ -0,0 +1,42 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.blueprint_data import BlueprintData + + +class GetBlueprintResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.blueprint_data import BlueprintData + + return { + "data": (BlueprintData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: Union[BlueprintData, UnsetType] = unset, **kwargs): + """ + The response for retrieving a single blueprint. + + :param data: A blueprint resource. + :type data: BlueprintData, optional + """ + if data is not unset: + kwargs["data"] = data + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/get_blueprints_response.py b/src/datadog_api_client/v2/model/get_blueprints_response.py new file mode 100644 index 0000000000..70053b9cc0 --- /dev/null +++ b/src/datadog_api_client/v2/model/get_blueprints_response.py @@ -0,0 +1,42 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.blueprint_data import BlueprintData + + +class GetBlueprintsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.blueprint_data import BlueprintData + + return { + "data": ([BlueprintData],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: Union[List[BlueprintData], UnsetType] = unset, **kwargs): + """ + The response for retrieving multiple blueprints. + + :param data: An array of blueprints. + :type data: [BlueprintData], optional + """ + if data is not unset: + kwargs["data"] = data + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/list_blueprints_response.py b/src/datadog_api_client/v2/model/list_blueprints_response.py new file mode 100644 index 0000000000..8f8a950fa2 --- /dev/null +++ b/src/datadog_api_client/v2/model/list_blueprints_response.py @@ -0,0 +1,42 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.blueprint_metadata_data import BlueprintMetadataData + + +class ListBlueprintsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.blueprint_metadata_data import BlueprintMetadataData + + return { + "data": ([BlueprintMetadataData],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: Union[List[BlueprintMetadataData], UnsetType] = unset, **kwargs): + """ + The response for listing available blueprints. + + :param data: An array of blueprint metadata. + :type data: [BlueprintMetadataData], optional + """ + if data is not unset: + kwargs["data"] = data + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/tag_data.py b/src/datadog_api_client/v2/model/tag_data.py new file mode 100644 index 0000000000..b310297e22 --- /dev/null +++ b/src/datadog_api_client/v2/model/tag_data.py @@ -0,0 +1,46 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.tag_data_type import TagDataType + + +class TagData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.tag_data_type import TagDataType + + return { + "id": (str,), + "type": (TagDataType,), + } + + attribute_map = { + "id": "id", + "type": "type", + } + + def __init__(self_, id: str, type: TagDataType, **kwargs): + """ + A tag resource associated with an app. + + :param id: The name of the tag. + :type id: str + + :param type: The resource type for a tag. + :type type: TagDataType + """ + super().__init__(kwargs) + + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/tag_data_type.py b/src/datadog_api_client/v2/model/tag_data_type.py new file mode 100644 index 0000000000..0a4766c4fe --- /dev/null +++ b/src/datadog_api_client/v2/model/tag_data_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class TagDataType(ModelSimple): + """ + The resource type for a tag. + + :param value: If omitted defaults to "tag". Must be one of ["tag"]. + :type value: str + """ + + allowed_values = { + "tag", + } + TAG: ClassVar["TagDataType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +TagDataType.TAG = TagDataType("tag") diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 33de6c51a8..455243f8fb 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -218,6 +218,7 @@ from datadog_api_client.v2.model.app_builder_event import AppBuilderEvent from datadog_api_client.v2.model.app_builder_event_name import AppBuilderEventName from datadog_api_client.v2.model.app_builder_event_type import AppBuilderEventType +from datadog_api_client.v2.model.app_builder_list_tags_response import AppBuilderListTagsResponse from datadog_api_client.v2.model.app_definition_type import AppDefinitionType from datadog_api_client.v2.model.app_deployment_type import AppDeploymentType from datadog_api_client.v2.model.app_favorite_type import AppFavoriteType @@ -605,6 +606,12 @@ BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus, ) from datadog_api_client.v2.model.billing_dimensions_mapping_response import BillingDimensionsMappingResponse +from datadog_api_client.v2.model.blueprint_attributes import BlueprintAttributes +from datadog_api_client.v2.model.blueprint_data import BlueprintData +from datadog_api_client.v2.model.blueprint_data_type import BlueprintDataType +from datadog_api_client.v2.model.blueprint_metadata_attributes import BlueprintMetadataAttributes +from datadog_api_client.v2.model.blueprint_metadata_data import BlueprintMetadataData +from datadog_api_client.v2.model.blueprint_native_action import BlueprintNativeAction from datadog_api_client.v2.model.branch_coverage_summary_request import BranchCoverageSummaryRequest from datadog_api_client.v2.model.branch_coverage_summary_request_attributes import ( BranchCoverageSummaryRequestAttributes, @@ -2523,6 +2530,8 @@ from datadog_api_client.v2.model.get_app_response import GetAppResponse from datadog_api_client.v2.model.get_app_response_data import GetAppResponseData from datadog_api_client.v2.model.get_app_response_data_attributes import GetAppResponseDataAttributes +from datadog_api_client.v2.model.get_blueprint_response import GetBlueprintResponse +from datadog_api_client.v2.model.get_blueprints_response import GetBlueprintsResponse from datadog_api_client.v2.model.get_custom_framework_response import GetCustomFrameworkResponse from datadog_api_client.v2.model.get_data_deletions_response_body import GetDataDeletionsResponseBody from datadog_api_client.v2.model.get_device_attributes import GetDeviceAttributes @@ -3415,6 +3424,7 @@ from datadog_api_client.v2.model.list_apps_response_meta import ListAppsResponseMeta from datadog_api_client.v2.model.list_apps_response_meta_page import ListAppsResponseMetaPage from datadog_api_client.v2.model.list_assets_sbo_ms_response import ListAssetsSBOMsResponse +from datadog_api_client.v2.model.list_blueprints_response import ListBlueprintsResponse from datadog_api_client.v2.model.list_campaigns_response import ListCampaignsResponse from datadog_api_client.v2.model.list_connections_response import ListConnectionsResponse from datadog_api_client.v2.model.list_connections_response_data import ListConnectionsResponseData @@ -6972,6 +6982,8 @@ from datadog_api_client.v2.model.table_row_resource_data_attributes import TableRowResourceDataAttributes from datadog_api_client.v2.model.table_row_resource_data_type import TableRowResourceDataType from datadog_api_client.v2.model.table_row_resource_identifier import TableRowResourceIdentifier +from datadog_api_client.v2.model.tag_data import TagData +from datadog_api_client.v2.model.tag_data_type import TagDataType from datadog_api_client.v2.model.tags_event_attribute import TagsEventAttribute from datadog_api_client.v2.model.targeting_rule import TargetingRule from datadog_api_client.v2.model.targeting_rule_request import TargetingRuleRequest @@ -7861,6 +7873,7 @@ "AppBuilderEvent", "AppBuilderEventName", "AppBuilderEventType", + "AppBuilderListTagsResponse", "AppDefinitionType", "AppDeploymentType", "AppFavoriteType", @@ -8122,6 +8135,12 @@ "BillingDimensionsMappingBodyItemAttributesEndpointsItems", "BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus", "BillingDimensionsMappingResponse", + "BlueprintAttributes", + "BlueprintData", + "BlueprintDataType", + "BlueprintMetadataAttributes", + "BlueprintMetadataData", + "BlueprintNativeAction", "BranchCoverageSummaryRequest", "BranchCoverageSummaryRequestAttributes", "BranchCoverageSummaryRequestData", @@ -9556,6 +9575,8 @@ "GetAppResponse", "GetAppResponseData", "GetAppResponseDataAttributes", + "GetBlueprintResponse", + "GetBlueprintsResponse", "GetCustomFrameworkResponse", "GetDataDeletionsResponseBody", "GetDeviceAttributes", @@ -10226,6 +10247,7 @@ "ListAppsResponseMeta", "ListAppsResponseMetaPage", "ListAssetsSBOMsResponse", + "ListBlueprintsResponse", "ListCampaignsResponse", "ListConnectionsResponse", "ListConnectionsResponseData", @@ -12559,6 +12581,8 @@ "TableRowResourceDataAttributes", "TableRowResourceDataType", "TableRowResourceIdentifier", + "TagData", + "TagDataType", "TagsEventAttribute", "TargetingRule", "TargetingRuleRequest", diff --git a/tests/v2/features/app_builder.feature b/tests/v2/features/app_builder.feature index bbc0caf196..bb1af2f0f7 100644 --- a/tests/v2/features/app_builder.feature +++ b/tests/v2/features/app_builder.feature @@ -139,6 +139,34 @@ Feature: App Builder And the response "data.id" has the same value as "app.data.id" And the response "data.type" is equal to "appDefinitions" + @skip @team:DataDog/app-builder-backend + Scenario: Get Blueprint returns "Not Found" response + Given new "GetBlueprint" request + And request contains "blueprint_id" parameter with value "00000000-0000-0000-0000-000000000001" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/app-builder-backend + Scenario: Get Blueprint returns "OK" response + Given new "GetBlueprint" request + And request contains "blueprint_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + + @skip @team:DataDog/app-builder-backend + Scenario: Get Blueprints by Integration ID returns "OK" response + Given new "GetBlueprintsByIntegrationId" request + And request contains "integration_id" parameter with value "aws" + When the request is sent + Then the response status is 200 OK + + @skip @team:DataDog/app-builder-backend + Scenario: Get Blueprints by Slugs returns "OK" response + Given new "GetBlueprintsBySlugs" request + And request contains "slugs" parameter with value "aws-service-manager" + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/app-builder-backend Scenario: List App Versions returns "Bad Request" response Given new "ListAppVersions" request @@ -172,6 +200,18 @@ Feature: App Builder When the request is sent Then the response status is 200 OK + @skip @team:DataDog/app-builder-backend + Scenario: List Blueprints returns "OK" response + Given new "ListBlueprints" request + When the request is sent + Then the response status is 200 OK + + @skip @team:DataDog/app-builder-backend + Scenario: List Tags returns "OK" response + Given new "ListTags" request + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/app-builder-backend Scenario: Name App Version returns "Bad Request" response Given new "UpdateAppVersionName" request diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index 7a5941a2c0..a6814010da 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -687,6 +687,36 @@ "type": "safe" } }, + "GetBlueprint": { + "tag": "App Builder", + "undo": { + "type": "safe" + } + }, + "ListBlueprints": { + "tag": "App Builder", + "undo": { + "type": "safe" + } + }, + "GetBlueprintsByIntegrationId": { + "tag": "App Builder", + "undo": { + "type": "safe" + } + }, + "GetBlueprintsBySlugs": { + "tag": "App Builder", + "undo": { + "type": "safe" + } + }, + "ListTags": { + "tag": "App Builder", + "undo": { + "type": "safe" + } + }, "ListApplicationKeys": { "tag": "Key Management", "undo": {