From 9bdcb739dc8675200fe80bedf7623583b08b4b2f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 11 Nov 2026 11:39:19 +0000 Subject: [PATCH] Regenerate client from commit cea239d of spec repo --- .generator/schemas/v2/openapi.yaml | 550 ++++++++++++++++++ ...eateChatGPTEnterpriseIntegrationAccount.py | 68 +++ ...leteChatGPTEnterpriseIntegrationAccount.py | 16 + .../GetChatGPTEnterpriseIntegrationAccount.py | 18 + ...istChatGPTEnterpriseIntegrationAccounts.py | 16 + ...dateChatGPTEnterpriseIntegrationAccount.py | 69 +++ src/datadog_api_client/configuration.py | 5 + .../chat_gpt_enterprise_integration_api.py | 226 +++++++ src/datadog_api_client/v2/apis/__init__.py | 2 + ...nt_console_integration_dataflow_request.py | 37 ++ ...t_console_integration_dataflow_response.py | 57 ++ ..._cost_data_integration_dataflow_request.py | 40 ++ ...cost_data_integration_dataflow_response.py | 57 ++ ...egration_account_authentication_request.py | 43 ++ ...gration_account_authentication_response.py | 40 ++ ...tegration_account_authentication_update.py | 43 ++ ...ation_account_bearer_token_auth_request.py | 54 ++ ...tion_account_bearer_token_auth_response.py | 44 ++ ...egration_account_bearer_token_auth_type.py | 37 ++ ...ration_account_bearer_token_auth_update.py | 62 ++ ...e_integration_account_create_attributes.py | 90 +++ ...erprise_integration_account_create_data.py | 54 ++ ...rise_integration_account_create_request.py | 44 ++ ...enterprise_integration_account_response.py | 44 ++ ...integration_account_response_attributes.py | 92 +++ ...prise_integration_account_response_data.py | 67 +++ ...se_integration_account_settings_request.py | 37 ++ ...e_integration_account_settings_response.py | 33 ++ ...ise_integration_account_settings_update.py | 40 ++ ...e_integration_account_update_attributes.py | 93 +++ ...erprise_integration_account_update_data.py | 64 ++ ...rise_integration_account_update_request.py | 44 ++ ...nterprise_integration_accounts_response.py | 44 ++ ...nterprise_integration_dataflows_request.py | 72 +++ ...terprise_integration_dataflows_response.py | 68 +++ src/datadog_api_client/v2/models/__init__.py | 104 ++++ .../chatgpt_enterprise_integration.feature | 148 +++++ tests/v2/features/undo.json | 37 ++ 38 files changed, 2659 insertions(+) create mode 100644 examples/v2/chatgpt-enterprise-integration/CreateChatGPTEnterpriseIntegrationAccount.py create mode 100644 examples/v2/chatgpt-enterprise-integration/DeleteChatGPTEnterpriseIntegrationAccount.py create mode 100644 examples/v2/chatgpt-enterprise-integration/GetChatGPTEnterpriseIntegrationAccount.py create mode 100644 examples/v2/chatgpt-enterprise-integration/ListChatGPTEnterpriseIntegrationAccounts.py create mode 100644 examples/v2/chatgpt-enterprise-integration/UpdateChatGPTEnterpriseIntegrationAccount.py create mode 100644 src/datadog_api_client/v2/api/chat_gpt_enterprise_integration_api.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_response.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_response.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_response.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_update.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_response.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_type.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_update.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_attributes.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_data.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_attributes.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_data.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_response.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_update.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_attributes.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_data.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_accounts_response.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_request.py create mode 100644 src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_response.py create mode 100644 tests/v2/features/chatgpt_enterprise_integration.feature diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6325ee4e37..638bc2fc09 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -24586,6 +24586,293 @@ components: example: infra_host type: string type: object + ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest: + additionalProperties: false + description: >- + Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them. Data already available from OpenAI appears within 1 hour of enabling this dataflow. + properties: + enabled: + description: >- + Whether Datadog collects this data. Defaults to `true`; set to `false` to stop collection. + example: true + type: boolean + required: + - enabled + type: object + ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse: + description: >- + Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them. + properties: + enabled: + description: Whether Datadog collects this data. + example: true + type: boolean + status: + $ref: "#/components/schemas/IntegrationAccountDataflowStatus" + type: object + ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest: + additionalProperties: false + description: >- + ChatGPT Enterprise costs from the OpenAI Costs API, so that ChatGPT Enterprise spend can be analyzed in [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/). These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts. + properties: + enabled: + description: >- + Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection. + example: true + type: boolean + type: object + ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse: + description: >- + ChatGPT Enterprise costs from the OpenAI Costs API, so that ChatGPT Enterprise spend can be analyzed in [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/). These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts. + properties: + enabled: + description: Whether Datadog collects this data. + example: true + type: boolean + status: + $ref: "#/components/schemas/IntegrationAccountDataflowStatus" + type: object + ChatGPTEnterpriseIntegrationAccountAuthenticationRequest: + description: Authentication for creating the ChatGPT Enterprise integration account. Exactly one method is set. + oneOf: + - $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest" + ChatGPTEnterpriseIntegrationAccountAuthenticationResponse: + description: Authentication configured on the ChatGPT Enterprise integration account. + oneOf: + - $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse" + ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate: + description: Authentication for updating the ChatGPT Enterprise integration account. Exactly one method is set. + oneOf: + - $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate" + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest: + additionalProperties: false + description: >- + Bearer token authentication. Use an admin key created in the OpenAI Admin Console of your ChatGPT Enterprise workspace, not in the API Platform admin-key console, with the **Costs** permission set to **Read**. + properties: + auth_type: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType" + token: + description: Secret token used to authenticate with ChatGPT Enterprise. + example: your-token + type: string + writeOnly: true + required: + - auth_type + - token + type: object + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse: + description: The bearer token authentication method configured on the account. + properties: + auth_type: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType" + required: + - auth_type + type: object + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType: + default: bearer_token + description: The authentication method type. + enum: + - bearer_token + example: bearer_token + type: string + x-enum-varnames: + - BEARER_TOKEN + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate: + additionalProperties: false + description: >- + Bearer token authentication. Use an admin key created in the OpenAI Admin Console of your ChatGPT Enterprise workspace, not in the API Platform admin-key console, with the **Costs** permission set to **Read**. Only the fields provided are changed; omit `token` to keep the stored one. + properties: + auth_type: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType" + token: + description: Secret token used to authenticate with ChatGPT Enterprise. + example: your-token + type: string + writeOnly: true + required: + - auth_type + type: object + ChatGPTEnterpriseIntegrationAccountCreateAttributes: + description: Writable attributes used to create a ChatGPT Enterprise integration account. + properties: + authentication: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountAuthenticationRequest" + dataflows: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationDataflowsRequest" + name: + description: Human-readable name of the ChatGPT Enterprise integration account. + example: chatgpt-enterprise-acme + type: string + settings: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountSettingsRequest" + required: + - name + - authentication + - settings + type: object + ChatGPTEnterpriseIntegrationAccountCreateData: + description: Data envelope for creating a ChatGPT Enterprise integration account. + properties: + attributes: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountCreateAttributes" + type: + $ref: "#/components/schemas/IntegrationAccountType" + required: + - type + - attributes + type: object + ChatGPTEnterpriseIntegrationAccountCreateRequest: + description: Request payload to create a ChatGPT Enterprise integration account. + properties: + data: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountCreateData" + required: + - data + type: object + ChatGPTEnterpriseIntegrationAccountResponse: + description: Response payload for a single ChatGPT Enterprise integration account. + properties: + data: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountResponseData" + required: + - data + type: object + ChatGPTEnterpriseIntegrationAccountResponseAttributes: + description: Attributes of a ChatGPT Enterprise integration account returned in responses. + properties: + authentication: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountAuthenticationResponse" + dataflows: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationDataflowsResponse" + name: + description: Human-readable name of the ChatGPT Enterprise integration account. + example: chatgpt-enterprise-acme + type: string + settings: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountSettingsResponse" + required: + - name + - settings + type: object + ChatGPTEnterpriseIntegrationAccountResponseData: + description: Data envelope of a ChatGPT Enterprise integration account, including server-assigned identity. + properties: + attributes: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountResponseAttributes" + id: + description: Server-generated unique identifier of the ChatGPT Enterprise integration account. + example: 3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03 + readOnly: true + type: string + type: + $ref: "#/components/schemas/IntegrationAccountType" + required: + - id + - attributes + - type + type: object + ChatGPTEnterpriseIntegrationAccountSettingsRequest: + additionalProperties: false + description: Settings for creating the ChatGPT Enterprise integration account. + properties: + openai_org_id: + description: >- + OpenAI API Platform organization ID (`org-...`) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match `^org-[A-Za-z0-9]+$` is rejected with a `422` response. + example: org-AbC123dEf456 + type: string + required: + - openai_org_id + type: object + ChatGPTEnterpriseIntegrationAccountSettingsResponse: + description: Settings configured on the ChatGPT Enterprise integration account. + properties: + openai_org_id: + description: >- + OpenAI API Platform organization ID (`org-...`) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match `^org-[A-Za-z0-9]+$` is rejected with a `422` response. + example: org-AbC123dEf456 + type: string + required: + - openai_org_id + type: object + ChatGPTEnterpriseIntegrationAccountSettingsUpdate: + additionalProperties: false + description: >- + Settings for updating the ChatGPT Enterprise integration account. Only the fields provided are changed. + properties: + openai_org_id: + description: >- + OpenAI API Platform organization ID (`org-...`) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match `^org-[A-Za-z0-9]+$` is rejected with a `422` response. + example: org-AbC123dEf456 + type: string + type: object + ChatGPTEnterpriseIntegrationAccountUpdateAttributes: + description: >- + Writable attributes used to update a ChatGPT Enterprise integration account. Every field is optional; only the fields provided are changed. When `dataflows` is provided, only the dataflow ids included in the request are modified; dataflows omitted from the map keep their current configuration. + properties: + authentication: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate" + dataflows: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationDataflowsRequest" + name: + description: Human-readable name of the ChatGPT Enterprise integration account. + example: chatgpt-enterprise-acme + type: string + settings: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountSettingsUpdate" + type: object + ChatGPTEnterpriseIntegrationAccountUpdateData: + description: Data envelope for updating a ChatGPT Enterprise integration account. + properties: + attributes: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountUpdateAttributes" + id: + description: Unique identifier of the ChatGPT Enterprise integration account to update. + example: 3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03 + type: string + type: + $ref: "#/components/schemas/IntegrationAccountType" + required: + - id + - type + - attributes + type: object + ChatGPTEnterpriseIntegrationAccountUpdateRequest: + description: Request payload to update a ChatGPT Enterprise integration account. + properties: + data: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountUpdateData" + required: + - data + type: object + ChatGPTEnterpriseIntegrationAccountsResponse: + description: Response payload for a list of ChatGPT Enterprise integration accounts. + properties: + data: + description: List of ChatGPT Enterprise integration accounts. + items: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountResponseData" + type: array + required: + - data + type: object + ChatGPTEnterpriseIntegrationDataflowsRequest: + additionalProperties: false + description: >- + Data Datadog collects from ChatGPT Enterprise, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set `enabled` to start or stop it. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow requires a ChatGPT Enterprise workspace with access to the OpenAI Costs API; a dataflow enabled without it is stored but collects no data. + properties: + chatgpt-enterprise-agent-console: + $ref: "#/components/schemas/ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest" + chatgpt-enterprise-cloud-cost-data: + $ref: "#/components/schemas/ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest" + type: object + ChatGPTEnterpriseIntegrationDataflowsResponse: + description: Data Datadog collects from ChatGPT Enterprise, keyed by dataflow id. + properties: + chatgpt-enterprise-agent-console: + $ref: "#/components/schemas/ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse" + chatgpt-enterprise-cloud-cost-data: + $ref: "#/components/schemas/ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse" + type: object CircleCIAPIKey: description: The definition of the `CircleCIAPIKey` object. properties: @@ -197681,6 +197968,260 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/integration-interfaces/chatgpt-enterprise/accounts: + get: + description: List ChatGPT Enterprise integration accounts. + operationId: ListChatGPTEnterpriseIntegrationAccounts + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + authentication: + auth_type: bearer_token + dataflows: + chatgpt-enterprise-agent-console: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + chatgpt-enterprise-cloud-cost-data: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + name: chatgpt-enterprise-acme + settings: + openai_org_id: org-AbC123dEf456 + id: 3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03 + type: integration-account + schema: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountsResponse" + description: OK + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/ForbiddenResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List ChatGPT Enterprise integration accounts + tags: + - ChatGPT Enterprise Integration + "x-permission": + operator: OR + permissions: + - integrations_read + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + post: + description: Create a ChatGPT Enterprise integration account. + operationId: CreateChatGPTEnterpriseIntegrationAccount + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountCreateRequest" + required: true + responses: + "201": + content: + application/json: + examples: + default: + value: + data: + attributes: + authentication: + auth_type: bearer_token + dataflows: + chatgpt-enterprise-agent-console: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + chatgpt-enterprise-cloud-cost-data: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + name: chatgpt-enterprise-acme + settings: + openai_org_id: org-AbC123dEf456 + id: 3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03 + type: integration-account + schema: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountResponse" + description: Created + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/ForbiddenResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "422": + $ref: "#/components/responses/UnprocessableEntityResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Create a ChatGPT Enterprise integration account + tags: + - ChatGPT Enterprise Integration + x-codegen-request-body-name: body + "x-permission": + operator: OR + permissions: + - manage_integrations + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}: + delete: + description: Delete a ChatGPT Enterprise integration account. + operationId: DeleteChatGPTEnterpriseIntegrationAccount + parameters: + - $ref: "#/components/parameters/IntegrationAccountIdParameter" + responses: + "200": + description: OK + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/ForbiddenResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Delete a ChatGPT Enterprise integration account + tags: + - ChatGPT Enterprise Integration + "x-permission": + operator: OR + permissions: + - manage_integrations + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + get: + description: Get a ChatGPT Enterprise integration account. + operationId: GetChatGPTEnterpriseIntegrationAccount + parameters: + - $ref: "#/components/parameters/IntegrationAccountIdParameter" + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + authentication: + auth_type: bearer_token + dataflows: + chatgpt-enterprise-agent-console: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + chatgpt-enterprise-cloud-cost-data: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + name: chatgpt-enterprise-acme + settings: + openai_org_id: org-AbC123dEf456 + id: 3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03 + type: integration-account + schema: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountResponse" + description: OK + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/ForbiddenResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get a ChatGPT Enterprise integration account + tags: + - ChatGPT Enterprise Integration + "x-permission": + operator: OR + permissions: + - integrations_read + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + patch: + description: Update a ChatGPT Enterprise integration account. Only the fields provided are changed. + operationId: UpdateChatGPTEnterpriseIntegrationAccount + parameters: + - $ref: "#/components/parameters/IntegrationAccountIdParameter" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountUpdateRequest" + required: true + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + authentication: + auth_type: bearer_token + dataflows: + chatgpt-enterprise-agent-console: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + chatgpt-enterprise-cloud-cost-data: + enabled: true + status: + health: DATAFLOW_HEALTH_OK + updated_at: "2026-11-10T08:30:50Z" + name: chatgpt-enterprise-acme + settings: + openai_org_id: org-AbC123dEf456 + id: 3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03 + type: integration-account + schema: + $ref: "#/components/schemas/ChatGPTEnterpriseIntegrationAccountResponse" + description: OK + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/ForbiddenResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "422": + $ref: "#/components/responses/UnprocessableEntityResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Update a ChatGPT Enterprise integration account + tags: + - ChatGPT Enterprise Integration + x-codegen-request-body-name: body + "x-permission": + operator: OR + permissions: + - manage_integrations + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/integration-interfaces/databricks/accounts: get: description: List Databricks integration accounts. @@ -272732,6 +273273,15 @@ tags: - description: >- View and manage change requests within Change Management. See the [Case Management page](https://docs.datadoghq.com/service_management/case_management/) for more information. name: Change Management + - description: |- + Manage your Datadog ChatGPT Enterprise integration accounts and account resources + directly through the Datadog API. See the + [ChatGPT Enterprise integration page](https://docs.datadoghq.com/integrations/chatgpt-enterprise/) for + more information. + externalDocs: + description: ChatGPT Enterprise integration. + url: https://docs.datadoghq.com/integrations/chatgpt-enterprise/ + name: ChatGPT Enterprise Integration - description: |- Configure AWS, GitHub, and Custom OIDC cloud authentication for persona and intake authentication through the Datadog API. name: Cloud Authentication diff --git a/examples/v2/chatgpt-enterprise-integration/CreateChatGPTEnterpriseIntegrationAccount.py b/examples/v2/chatgpt-enterprise-integration/CreateChatGPTEnterpriseIntegrationAccount.py new file mode 100644 index 0000000000..76857c5cb0 --- /dev/null +++ b/examples/v2/chatgpt-enterprise-integration/CreateChatGPTEnterpriseIntegrationAccount.py @@ -0,0 +1,68 @@ +""" +Create a ChatGPT Enterprise integration account returns "Created" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.chat_gpt_enterprise_integration_api import ChatGPTEnterpriseIntegrationApi +from datadog_api_client.v2.model.chat_gpt_enterprise_agent_console_integration_dataflow_request import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_request import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_attributes import ( + ChatGPTEnterpriseIntegrationAccountCreateAttributes, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_data import ( + ChatGPTEnterpriseIntegrationAccountCreateData, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_request import ( + ChatGPTEnterpriseIntegrationAccountCreateRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_request import ( + ChatGPTEnterpriseIntegrationAccountSettingsRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_request import ( + ChatGPTEnterpriseIntegrationDataflowsRequest, +) +from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + +body = ChatGPTEnterpriseIntegrationAccountCreateRequest( + data=ChatGPTEnterpriseIntegrationAccountCreateData( + attributes=ChatGPTEnterpriseIntegrationAccountCreateAttributes( + authentication=ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest( + auth_type=ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType.BEARER_TOKEN, + token="your-token", + ), + dataflows=ChatGPTEnterpriseIntegrationDataflowsRequest( + chatgpt_enterprise_agent_console=ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest( + enabled=True, + ), + chatgpt_enterprise_cloud_cost_data=ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest( + enabled=True, + ), + ), + name="chatgpt-enterprise-acme", + settings=ChatGPTEnterpriseIntegrationAccountSettingsRequest( + openai_org_id="org-AbC123dEf456", + ), + ), + type=IntegrationAccountType.INTEGRATION_ACCOUNT, + ), +) + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["create_chat_gpt_enterprise_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = ChatGPTEnterpriseIntegrationApi(api_client) + response = api_instance.create_chat_gpt_enterprise_integration_account(body=body) + + print(response) diff --git a/examples/v2/chatgpt-enterprise-integration/DeleteChatGPTEnterpriseIntegrationAccount.py b/examples/v2/chatgpt-enterprise-integration/DeleteChatGPTEnterpriseIntegrationAccount.py new file mode 100644 index 0000000000..3bb4a8a0df --- /dev/null +++ b/examples/v2/chatgpt-enterprise-integration/DeleteChatGPTEnterpriseIntegrationAccount.py @@ -0,0 +1,16 @@ +""" +Delete a ChatGPT Enterprise integration account returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.chat_gpt_enterprise_integration_api import ChatGPTEnterpriseIntegrationApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["delete_chat_gpt_enterprise_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = ChatGPTEnterpriseIntegrationApi(api_client) + api_instance.delete_chat_gpt_enterprise_integration_account( + account_id="account_id", + ) diff --git a/examples/v2/chatgpt-enterprise-integration/GetChatGPTEnterpriseIntegrationAccount.py b/examples/v2/chatgpt-enterprise-integration/GetChatGPTEnterpriseIntegrationAccount.py new file mode 100644 index 0000000000..0c2cb9d301 --- /dev/null +++ b/examples/v2/chatgpt-enterprise-integration/GetChatGPTEnterpriseIntegrationAccount.py @@ -0,0 +1,18 @@ +""" +Get a ChatGPT Enterprise integration account returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.chat_gpt_enterprise_integration_api import ChatGPTEnterpriseIntegrationApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["get_chat_gpt_enterprise_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = ChatGPTEnterpriseIntegrationApi(api_client) + response = api_instance.get_chat_gpt_enterprise_integration_account( + account_id="account_id", + ) + + print(response) diff --git a/examples/v2/chatgpt-enterprise-integration/ListChatGPTEnterpriseIntegrationAccounts.py b/examples/v2/chatgpt-enterprise-integration/ListChatGPTEnterpriseIntegrationAccounts.py new file mode 100644 index 0000000000..7348631df8 --- /dev/null +++ b/examples/v2/chatgpt-enterprise-integration/ListChatGPTEnterpriseIntegrationAccounts.py @@ -0,0 +1,16 @@ +""" +List ChatGPT Enterprise integration accounts returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.chat_gpt_enterprise_integration_api import ChatGPTEnterpriseIntegrationApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["list_chat_gpt_enterprise_integration_accounts"] = True +with ApiClient(configuration) as api_client: + api_instance = ChatGPTEnterpriseIntegrationApi(api_client) + response = api_instance.list_chat_gpt_enterprise_integration_accounts() + + print(response) diff --git a/examples/v2/chatgpt-enterprise-integration/UpdateChatGPTEnterpriseIntegrationAccount.py b/examples/v2/chatgpt-enterprise-integration/UpdateChatGPTEnterpriseIntegrationAccount.py new file mode 100644 index 0000000000..7e59aa3649 --- /dev/null +++ b/examples/v2/chatgpt-enterprise-integration/UpdateChatGPTEnterpriseIntegrationAccount.py @@ -0,0 +1,69 @@ +""" +Update a ChatGPT Enterprise integration account returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.chat_gpt_enterprise_integration_api import ChatGPTEnterpriseIntegrationApi +from datadog_api_client.v2.model.chat_gpt_enterprise_agent_console_integration_dataflow_request import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_update import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_update import ( + ChatGPTEnterpriseIntegrationAccountSettingsUpdate, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_attributes import ( + ChatGPTEnterpriseIntegrationAccountUpdateAttributes, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_data import ( + ChatGPTEnterpriseIntegrationAccountUpdateData, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_request import ( + ChatGPTEnterpriseIntegrationAccountUpdateRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_request import ( + ChatGPTEnterpriseIntegrationDataflowsRequest, +) +from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + +body = ChatGPTEnterpriseIntegrationAccountUpdateRequest( + data=ChatGPTEnterpriseIntegrationAccountUpdateData( + attributes=ChatGPTEnterpriseIntegrationAccountUpdateAttributes( + authentication=ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate( + auth_type=ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType.BEARER_TOKEN, + token="your-token", + ), + dataflows=ChatGPTEnterpriseIntegrationDataflowsRequest( + chatgpt_enterprise_agent_console=ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest( + enabled=True, + ), + chatgpt_enterprise_cloud_cost_data=ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest( + enabled=True, + ), + ), + name="chatgpt-enterprise-acme", + settings=ChatGPTEnterpriseIntegrationAccountSettingsUpdate( + openai_org_id="org-AbC123dEf456", + ), + ), + id="3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03", + type=IntegrationAccountType.INTEGRATION_ACCOUNT, + ), +) + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["update_chat_gpt_enterprise_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = ChatGPTEnterpriseIntegrationApi(api_client) + response = api_instance.update_chat_gpt_enterprise_integration_account(account_id="account_id", body=body) + + print(response) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index 2f5b980616..1a0202b88d 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -726,6 +726,11 @@ def __init__( "v2.update_incident_user_defined_field": False, "v2.update_incident_user_defined_role": False, "v2.update_timestamp_override": False, + "v2.create_chat_gpt_enterprise_integration_account": False, + "v2.delete_chat_gpt_enterprise_integration_account": False, + "v2.get_chat_gpt_enterprise_integration_account": False, + "v2.list_chat_gpt_enterprise_integration_accounts": False, + "v2.update_chat_gpt_enterprise_integration_account": False, "v2.create_databricks_integration_account": False, "v2.delete_databricks_integration_account": False, "v2.get_databricks_integration_account": False, diff --git a/src/datadog_api_client/v2/api/chat_gpt_enterprise_integration_api.py b/src/datadog_api_client/v2/api/chat_gpt_enterprise_integration_api.py new file mode 100644 index 0000000000..af428ec712 --- /dev/null +++ b/src/datadog_api_client/v2/api/chat_gpt_enterprise_integration_api.py @@ -0,0 +1,226 @@ +# 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 + +from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint +from datadog_api_client.configuration import Configuration +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_accounts_response import ( + ChatGPTEnterpriseIntegrationAccountsResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response import ( + ChatGPTEnterpriseIntegrationAccountResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_request import ( + ChatGPTEnterpriseIntegrationAccountCreateRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_request import ( + ChatGPTEnterpriseIntegrationAccountUpdateRequest, +) + + +class ChatGPTEnterpriseIntegrationApi: + """ + Manage your Datadog ChatGPT Enterprise integration accounts and account resources + directly through the Datadog API. See the + `ChatGPT Enterprise integration page `_ for + more information. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient(Configuration()) + self.api_client = api_client + + self._create_chat_gpt_enterprise_integration_account_endpoint = _Endpoint( + settings={ + "response_type": (ChatGPTEnterpriseIntegrationAccountResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/chatgpt-enterprise/accounts", + "operation_id": "create_chat_gpt_enterprise_integration_account", + "http_method": "POST", + "version": "v2", + }, + params_map={ + "body": { + "required": True, + "openapi_types": (ChatGPTEnterpriseIntegrationAccountCreateRequest,), + "location": "body", + }, + }, + headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, + api_client=api_client, + ) + + self._delete_chat_gpt_enterprise_integration_account_endpoint = _Endpoint( + settings={ + "response_type": None, + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}", + "operation_id": "delete_chat_gpt_enterprise_integration_account", + "http_method": "DELETE", + "version": "v2", + }, + params_map={ + "account_id": { + "required": True, + "openapi_types": (str,), + "attribute": "account_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["*/*"], + }, + api_client=api_client, + ) + + self._get_chat_gpt_enterprise_integration_account_endpoint = _Endpoint( + settings={ + "response_type": (ChatGPTEnterpriseIntegrationAccountResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}", + "operation_id": "get_chat_gpt_enterprise_integration_account", + "http_method": "GET", + "version": "v2", + }, + params_map={ + "account_id": { + "required": True, + "openapi_types": (str,), + "attribute": "account_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._list_chat_gpt_enterprise_integration_accounts_endpoint = _Endpoint( + settings={ + "response_type": (ChatGPTEnterpriseIntegrationAccountsResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/chatgpt-enterprise/accounts", + "operation_id": "list_chat_gpt_enterprise_integration_accounts", + "http_method": "GET", + "version": "v2", + }, + params_map={}, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._update_chat_gpt_enterprise_integration_account_endpoint = _Endpoint( + settings={ + "response_type": (ChatGPTEnterpriseIntegrationAccountResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}", + "operation_id": "update_chat_gpt_enterprise_integration_account", + "http_method": "PATCH", + "version": "v2", + }, + params_map={ + "account_id": { + "required": True, + "openapi_types": (str,), + "attribute": "account_id", + "location": "path", + }, + "body": { + "required": True, + "openapi_types": (ChatGPTEnterpriseIntegrationAccountUpdateRequest,), + "location": "body", + }, + }, + headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, + api_client=api_client, + ) + + def create_chat_gpt_enterprise_integration_account( + self, + body: ChatGPTEnterpriseIntegrationAccountCreateRequest, + ) -> ChatGPTEnterpriseIntegrationAccountResponse: + """Create a ChatGPT Enterprise integration account. + + Create a ChatGPT Enterprise integration account. + + :type body: ChatGPTEnterpriseIntegrationAccountCreateRequest + :rtype: ChatGPTEnterpriseIntegrationAccountResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["body"] = body + + return self._create_chat_gpt_enterprise_integration_account_endpoint.call_with_http_info(**kwargs) + + def delete_chat_gpt_enterprise_integration_account( + self, + account_id: str, + ) -> None: + """Delete a ChatGPT Enterprise integration account. + + Delete a ChatGPT Enterprise integration account. + + :param account_id: Unique identifier of the integration account. + :type account_id: str + :rtype: None + """ + kwargs: Dict[str, Any] = {} + kwargs["account_id"] = account_id + + return self._delete_chat_gpt_enterprise_integration_account_endpoint.call_with_http_info(**kwargs) + + def get_chat_gpt_enterprise_integration_account( + self, + account_id: str, + ) -> ChatGPTEnterpriseIntegrationAccountResponse: + """Get a ChatGPT Enterprise integration account. + + Get a ChatGPT Enterprise integration account. + + :param account_id: Unique identifier of the integration account. + :type account_id: str + :rtype: ChatGPTEnterpriseIntegrationAccountResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["account_id"] = account_id + + return self._get_chat_gpt_enterprise_integration_account_endpoint.call_with_http_info(**kwargs) + + def list_chat_gpt_enterprise_integration_accounts( + self, + ) -> ChatGPTEnterpriseIntegrationAccountsResponse: + """List ChatGPT Enterprise integration accounts. + + List ChatGPT Enterprise integration accounts. + + :rtype: ChatGPTEnterpriseIntegrationAccountsResponse + """ + kwargs: Dict[str, Any] = {} + return self._list_chat_gpt_enterprise_integration_accounts_endpoint.call_with_http_info(**kwargs) + + def update_chat_gpt_enterprise_integration_account( + self, + account_id: str, + body: ChatGPTEnterpriseIntegrationAccountUpdateRequest, + ) -> ChatGPTEnterpriseIntegrationAccountResponse: + """Update a ChatGPT Enterprise integration account. + + Update a ChatGPT Enterprise integration account. Only the fields provided are changed. + + :param account_id: Unique identifier of the integration account. + :type account_id: str + :type body: ChatGPTEnterpriseIntegrationAccountUpdateRequest + :rtype: ChatGPTEnterpriseIntegrationAccountResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["account_id"] = account_id + + kwargs["body"] = body + + return self._update_chat_gpt_enterprise_integration_account_endpoint.call_with_http_info(**kwargs) diff --git a/src/datadog_api_client/v2/apis/__init__.py b/src/datadog_api_client/v2/apis/__init__.py index e9da816e59..71503701bf 100644 --- a/src/datadog_api_client/v2/apis/__init__.py +++ b/src/datadog_api_client/v2/apis/__init__.py @@ -31,6 +31,7 @@ from datadog_api_client.v2.api.case_management_attribute_api import CaseManagementAttributeApi from datadog_api_client.v2.api.case_management_type_api import CaseManagementTypeApi from datadog_api_client.v2.api.change_management_api import ChangeManagementApi +from datadog_api_client.v2.api.chat_gpt_enterprise_integration_api import ChatGPTEnterpriseIntegrationApi from datadog_api_client.v2.api.cloud_authentication_api import CloudAuthenticationApi from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi from datadog_api_client.v2.api.cloud_network_monitoring_api import CloudNetworkMonitoringApi @@ -193,6 +194,7 @@ "CaseManagementAttributeApi", "CaseManagementTypeApi", "ChangeManagementApi", + "ChatGPTEnterpriseIntegrationApi", "CloudAuthenticationApi", "CloudCostManagementApi", "CloudNetworkMonitoringApi", diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_request.py new file mode 100644 index 0000000000..20d87298bb --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_request.py @@ -0,0 +1,37 @@ +# 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, + cached_property, +) + + +class ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "enabled": (bool,), + } + + attribute_map = { + "enabled": "enabled", + } + + def __init__(self_, enabled: bool, **kwargs): + """ + Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them. Data already available from OpenAI appears within 1 hour of enabling this dataflow. + + :param enabled: Whether Datadog collects this data. Defaults to ``true`` ; set to ``false`` to stop collection. + :type enabled: bool + """ + super().__init__(kwargs) + + self_.enabled = enabled diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_response.py new file mode 100644 index 0000000000..5ac9045676 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_agent_console_integration_dataflow_response.py @@ -0,0 +1,57 @@ +# 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.integration_account_dataflow_status import IntegrationAccountDataflowStatus + + +class ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.integration_account_dataflow_status import IntegrationAccountDataflowStatus + + return { + "enabled": (bool,), + "status": (IntegrationAccountDataflowStatus,), + } + + attribute_map = { + "enabled": "enabled", + "status": "status", + } + read_only_vars = { + "status", + } + + def __init__( + self_, + enabled: Union[bool, UnsetType] = unset, + status: Union[IntegrationAccountDataflowStatus, UnsetType] = unset, + **kwargs, + ): + """ + Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them. + + :param enabled: Whether Datadog collects this data. + :type enabled: bool, optional + + :param status: Read-only collection status of a dataflow. + :type status: IntegrationAccountDataflowStatus, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + if status is not unset: + kwargs["status"] = status + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request.py new file mode 100644 index 0000000000..0a570cbf47 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request.py @@ -0,0 +1,40 @@ +# 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 + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "enabled": (bool,), + } + + attribute_map = { + "enabled": "enabled", + } + + def __init__(self_, enabled: Union[bool, UnsetType] = unset, **kwargs): + """ + ChatGPT Enterprise costs from the OpenAI Costs API, so that ChatGPT Enterprise spend can be analyzed in `Cloud Cost Management `_. These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts. + + :param enabled: Whether Datadog collects this data. Defaults to ``false`` ; set to ``true`` to start collection. + :type enabled: bool, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_response.py new file mode 100644 index 0000000000..e062614d85 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_cloud_cost_data_integration_dataflow_response.py @@ -0,0 +1,57 @@ +# 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.integration_account_dataflow_status import IntegrationAccountDataflowStatus + + +class ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.integration_account_dataflow_status import IntegrationAccountDataflowStatus + + return { + "enabled": (bool,), + "status": (IntegrationAccountDataflowStatus,), + } + + attribute_map = { + "enabled": "enabled", + "status": "status", + } + read_only_vars = { + "status", + } + + def __init__( + self_, + enabled: Union[bool, UnsetType] = unset, + status: Union[IntegrationAccountDataflowStatus, UnsetType] = unset, + **kwargs, + ): + """ + ChatGPT Enterprise costs from the OpenAI Costs API, so that ChatGPT Enterprise spend can be analyzed in `Cloud Cost Management `_. These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts. + + :param enabled: Whether Datadog collects this data. + :type enabled: bool, optional + + :param status: Read-only collection status of a dataflow. + :type status: IntegrationAccountDataflowStatus, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + if status is not unset: + kwargs["status"] = status + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_request.py new file mode 100644 index 0000000000..3269a0803f --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_request.py @@ -0,0 +1,43 @@ +# 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 ( + ModelComposed, + cached_property, +) + + +class ChatGPTEnterpriseIntegrationAccountAuthenticationRequest(ModelComposed): + def __init__(self, **kwargs): + """ + Authentication for creating the ChatGPT Enterprise integration account. Exactly one method is set. + + :param auth_type: The authentication method type. + :type auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType + + :param token: Secret token used to authenticate with ChatGPT Enterprise. + :type token: str + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_request import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest, + ) + + return { + "oneOf": [ + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest, + ], + } diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_response.py new file mode 100644 index 0000000000..76de02fcdf --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_response.py @@ -0,0 +1,40 @@ +# 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 ( + ModelComposed, + cached_property, +) + + +class ChatGPTEnterpriseIntegrationAccountAuthenticationResponse(ModelComposed): + def __init__(self, **kwargs): + """ + Authentication configured on the ChatGPT Enterprise integration account. + + :param auth_type: The authentication method type. + :type auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_response import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse, + ) + + return { + "oneOf": [ + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse, + ], + } diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_update.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_update.py new file mode 100644 index 0000000000..24875c93c4 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_authentication_update.py @@ -0,0 +1,43 @@ +# 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 ( + ModelComposed, + cached_property, +) + + +class ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate(ModelComposed): + def __init__(self, **kwargs): + """ + Authentication for updating the ChatGPT Enterprise integration account. Exactly one method is set. + + :param auth_type: The authentication method type. + :type auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType + + :param token: Secret token used to authenticate with ChatGPT Enterprise. + :type token: str, optional + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_update import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate, + ) + + return { + "oneOf": [ + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate, + ], + } diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_request.py new file mode 100644 index 0000000000..b98df303f9 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_request.py @@ -0,0 +1,54 @@ +# 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.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, + ) + + +class ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, + ) + + return { + "auth_type": (ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType,), + "token": (str,), + } + + attribute_map = { + "auth_type": "auth_type", + "token": "token", + } + + def __init__(self_, auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, token: str, **kwargs): + """ + Bearer token authentication. Use an admin key created in the OpenAI Admin Console of your ChatGPT Enterprise workspace, not in the API Platform admin-key console, with the **Costs** permission set to **Read**. + + :param auth_type: The authentication method type. + :type auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType + + :param token: Secret token used to authenticate with ChatGPT Enterprise. + :type token: str + """ + super().__init__(kwargs) + + self_.auth_type = auth_type + self_.token = token diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_response.py new file mode 100644 index 0000000000..5a318d0089 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_response.py @@ -0,0 +1,44 @@ +# 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.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, + ) + + +class ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, + ) + + return { + "auth_type": (ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType,), + } + + attribute_map = { + "auth_type": "auth_type", + } + + def __init__(self_, auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, **kwargs): + """ + The bearer token authentication method configured on the account. + + :param auth_type: The authentication method type. + :type auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType + """ + super().__init__(kwargs) + + self_.auth_type = auth_type diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_type.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_type.py new file mode 100644 index 0000000000..42ae03ceff --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_type.py @@ -0,0 +1,37 @@ +# 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 ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType(ModelSimple): + """ + The authentication method type. + + :param value: If omitted defaults to "bearer_token". Must be one of ["bearer_token"]. + :type value: str + """ + + allowed_values = { + "bearer_token", + } + BEARER_TOKEN: ClassVar["ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType.BEARER_TOKEN = ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType("bearer_token") +) diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_update.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_update.py new file mode 100644 index 0000000000..c841d41142 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_bearer_token_auth_update.py @@ -0,0 +1,62 @@ +# 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.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, + ) + + +class ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, + ) + + return { + "auth_type": (ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType,), + "token": (str,), + } + + attribute_map = { + "auth_type": "auth_type", + "token": "token", + } + + def __init__( + self_, + auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, + token: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Bearer token authentication. Use an admin key created in the OpenAI Admin Console of your ChatGPT Enterprise workspace, not in the API Platform admin-key console, with the **Costs** permission set to **Read**. Only the fields provided are changed; omit ``token`` to keep the stored one. + + :param auth_type: The authentication method type. + :type auth_type: ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType + + :param token: Secret token used to authenticate with ChatGPT Enterprise. + :type token: str, optional + """ + if token is not unset: + kwargs["token"] = token + super().__init__(kwargs) + + self_.auth_type = auth_type diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_attributes.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_attributes.py new file mode 100644 index 0000000000..3741c82a10 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_attributes.py @@ -0,0 +1,90 @@ +# 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.chat_gpt_enterprise_integration_account_authentication_request import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_request import ( + ChatGPTEnterpriseIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_request import ( + ChatGPTEnterpriseIntegrationAccountSettingsRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_request import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest, + ) + + +class ChatGPTEnterpriseIntegrationAccountCreateAttributes(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_authentication_request import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_request import ( + ChatGPTEnterpriseIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_request import ( + ChatGPTEnterpriseIntegrationAccountSettingsRequest, + ) + + return { + "authentication": (ChatGPTEnterpriseIntegrationAccountAuthenticationRequest,), + "dataflows": (ChatGPTEnterpriseIntegrationDataflowsRequest,), + "name": (str,), + "settings": (ChatGPTEnterpriseIntegrationAccountSettingsRequest,), + } + + attribute_map = { + "authentication": "authentication", + "dataflows": "dataflows", + "name": "name", + "settings": "settings", + } + + def __init__( + self_, + authentication: Union[ + ChatGPTEnterpriseIntegrationAccountAuthenticationRequest, + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest, + ], + name: str, + settings: ChatGPTEnterpriseIntegrationAccountSettingsRequest, + dataflows: Union[ChatGPTEnterpriseIntegrationDataflowsRequest, UnsetType] = unset, + **kwargs, + ): + """ + Writable attributes used to create a ChatGPT Enterprise integration account. + + :param authentication: Authentication for creating the ChatGPT Enterprise integration account. Exactly one method is set. + :type authentication: ChatGPTEnterpriseIntegrationAccountAuthenticationRequest + + :param dataflows: Data Datadog collects from ChatGPT Enterprise, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set ``enabled`` to start or stop it. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow requires a ChatGPT Enterprise workspace with access to the OpenAI Costs API; a dataflow enabled without it is stored but collects no data. + :type dataflows: ChatGPTEnterpriseIntegrationDataflowsRequest, optional + + :param name: Human-readable name of the ChatGPT Enterprise integration account. + :type name: str + + :param settings: Settings for creating the ChatGPT Enterprise integration account. + :type settings: ChatGPTEnterpriseIntegrationAccountSettingsRequest + """ + if dataflows is not unset: + kwargs["dataflows"] = dataflows + super().__init__(kwargs) + + self_.authentication = authentication + self_.name = name + self_.settings = settings diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_data.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_data.py new file mode 100644 index 0000000000..5b10bb3b91 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_data.py @@ -0,0 +1,54 @@ +# 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.chat_gpt_enterprise_integration_account_create_attributes import ( + ChatGPTEnterpriseIntegrationAccountCreateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + +class ChatGPTEnterpriseIntegrationAccountCreateData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_attributes import ( + ChatGPTEnterpriseIntegrationAccountCreateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + return { + "attributes": (ChatGPTEnterpriseIntegrationAccountCreateAttributes,), + "type": (IntegrationAccountType,), + } + + attribute_map = { + "attributes": "attributes", + "type": "type", + } + + def __init__( + self_, attributes: ChatGPTEnterpriseIntegrationAccountCreateAttributes, type: IntegrationAccountType, **kwargs + ): + """ + Data envelope for creating a ChatGPT Enterprise integration account. + + :param attributes: Writable attributes used to create a ChatGPT Enterprise integration account. + :type attributes: ChatGPTEnterpriseIntegrationAccountCreateAttributes + + :param type: The type of the integration account resource. Always ``integration-account``. + :type type: IntegrationAccountType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.type = type diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_request.py new file mode 100644 index 0000000000..6251472646 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_create_request.py @@ -0,0 +1,44 @@ +# 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.chat_gpt_enterprise_integration_account_create_data import ( + ChatGPTEnterpriseIntegrationAccountCreateData, + ) + + +class ChatGPTEnterpriseIntegrationAccountCreateRequest(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_data import ( + ChatGPTEnterpriseIntegrationAccountCreateData, + ) + + return { + "data": (ChatGPTEnterpriseIntegrationAccountCreateData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: ChatGPTEnterpriseIntegrationAccountCreateData, **kwargs): + """ + Request payload to create a ChatGPT Enterprise integration account. + + :param data: Data envelope for creating a ChatGPT Enterprise integration account. + :type data: ChatGPTEnterpriseIntegrationAccountCreateData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response.py new file mode 100644 index 0000000000..600a957f18 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response.py @@ -0,0 +1,44 @@ +# 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.chat_gpt_enterprise_integration_account_response_data import ( + ChatGPTEnterpriseIntegrationAccountResponseData, + ) + + +class ChatGPTEnterpriseIntegrationAccountResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response_data import ( + ChatGPTEnterpriseIntegrationAccountResponseData, + ) + + return { + "data": (ChatGPTEnterpriseIntegrationAccountResponseData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: ChatGPTEnterpriseIntegrationAccountResponseData, **kwargs): + """ + Response payload for a single ChatGPT Enterprise integration account. + + :param data: Data envelope of a ChatGPT Enterprise integration account, including server-assigned identity. + :type data: ChatGPTEnterpriseIntegrationAccountResponseData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_attributes.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_attributes.py new file mode 100644 index 0000000000..f4f8b00b93 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_attributes.py @@ -0,0 +1,92 @@ +# 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.chat_gpt_enterprise_integration_account_authentication_response import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationResponse, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_response import ( + ChatGPTEnterpriseIntegrationDataflowsResponse, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_response import ( + ChatGPTEnterpriseIntegrationAccountSettingsResponse, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_response import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse, + ) + + +class ChatGPTEnterpriseIntegrationAccountResponseAttributes(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_authentication_response import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationResponse, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_response import ( + ChatGPTEnterpriseIntegrationDataflowsResponse, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_response import ( + ChatGPTEnterpriseIntegrationAccountSettingsResponse, + ) + + return { + "authentication": (ChatGPTEnterpriseIntegrationAccountAuthenticationResponse,), + "dataflows": (ChatGPTEnterpriseIntegrationDataflowsResponse,), + "name": (str,), + "settings": (ChatGPTEnterpriseIntegrationAccountSettingsResponse,), + } + + attribute_map = { + "authentication": "authentication", + "dataflows": "dataflows", + "name": "name", + "settings": "settings", + } + + def __init__( + self_, + name: str, + settings: ChatGPTEnterpriseIntegrationAccountSettingsResponse, + authentication: Union[ + ChatGPTEnterpriseIntegrationAccountAuthenticationResponse, + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse, + UnsetType, + ] = unset, + dataflows: Union[ChatGPTEnterpriseIntegrationDataflowsResponse, UnsetType] = unset, + **kwargs, + ): + """ + Attributes of a ChatGPT Enterprise integration account returned in responses. + + :param authentication: Authentication configured on the ChatGPT Enterprise integration account. + :type authentication: ChatGPTEnterpriseIntegrationAccountAuthenticationResponse, optional + + :param dataflows: Data Datadog collects from ChatGPT Enterprise, keyed by dataflow id. + :type dataflows: ChatGPTEnterpriseIntegrationDataflowsResponse, optional + + :param name: Human-readable name of the ChatGPT Enterprise integration account. + :type name: str + + :param settings: Settings configured on the ChatGPT Enterprise integration account. + :type settings: ChatGPTEnterpriseIntegrationAccountSettingsResponse + """ + if authentication is not unset: + kwargs["authentication"] = authentication + if dataflows is not unset: + kwargs["dataflows"] = dataflows + super().__init__(kwargs) + + self_.name = name + self_.settings = settings diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_data.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_data.py new file mode 100644 index 0000000000..ce09a7daf5 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_response_data.py @@ -0,0 +1,67 @@ +# 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.chat_gpt_enterprise_integration_account_response_attributes import ( + ChatGPTEnterpriseIntegrationAccountResponseAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + +class ChatGPTEnterpriseIntegrationAccountResponseData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response_attributes import ( + ChatGPTEnterpriseIntegrationAccountResponseAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + return { + "attributes": (ChatGPTEnterpriseIntegrationAccountResponseAttributes,), + "id": (str,), + "type": (IntegrationAccountType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + read_only_vars = { + "id", + } + + def __init__( + self_, + attributes: ChatGPTEnterpriseIntegrationAccountResponseAttributes, + id: str, + type: IntegrationAccountType, + **kwargs, + ): + """ + Data envelope of a ChatGPT Enterprise integration account, including server-assigned identity. + + :param attributes: Attributes of a ChatGPT Enterprise integration account returned in responses. + :type attributes: ChatGPTEnterpriseIntegrationAccountResponseAttributes + + :param id: Server-generated unique identifier of the ChatGPT Enterprise integration account. + :type id: str + + :param type: The type of the integration account resource. Always ``integration-account``. + :type type: IntegrationAccountType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_request.py new file mode 100644 index 0000000000..de83c1f532 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_request.py @@ -0,0 +1,37 @@ +# 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, + cached_property, +) + + +class ChatGPTEnterpriseIntegrationAccountSettingsRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "openai_org_id": (str,), + } + + attribute_map = { + "openai_org_id": "openai_org_id", + } + + def __init__(self_, openai_org_id: str, **kwargs): + """ + Settings for creating the ChatGPT Enterprise integration account. + + :param openai_org_id: OpenAI API Platform organization ID ( ``org-...`` ) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match ``^org-[A-Za-z0-9]+$`` is rejected with a ``422`` response. + :type openai_org_id: str + """ + super().__init__(kwargs) + + self_.openai_org_id = openai_org_id diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_response.py new file mode 100644 index 0000000000..d910475070 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_response.py @@ -0,0 +1,33 @@ +# 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, + cached_property, +) + + +class ChatGPTEnterpriseIntegrationAccountSettingsResponse(ModelNormal): + @cached_property + def openapi_types(_): + return { + "openai_org_id": (str,), + } + + attribute_map = { + "openai_org_id": "openai_org_id", + } + + def __init__(self_, openai_org_id: str, **kwargs): + """ + Settings configured on the ChatGPT Enterprise integration account. + + :param openai_org_id: OpenAI API Platform organization ID ( ``org-...`` ) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match ``^org-[A-Za-z0-9]+$`` is rejected with a ``422`` response. + :type openai_org_id: str + """ + super().__init__(kwargs) + + self_.openai_org_id = openai_org_id diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_update.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_update.py new file mode 100644 index 0000000000..fb36cd7e3b --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_settings_update.py @@ -0,0 +1,40 @@ +# 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 + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class ChatGPTEnterpriseIntegrationAccountSettingsUpdate(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "openai_org_id": (str,), + } + + attribute_map = { + "openai_org_id": "openai_org_id", + } + + def __init__(self_, openai_org_id: Union[str, UnsetType] = unset, **kwargs): + """ + Settings for updating the ChatGPT Enterprise integration account. Only the fields provided are changed. + + :param openai_org_id: OpenAI API Platform organization ID ( ``org-...`` ) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match ``^org-[A-Za-z0-9]+$`` is rejected with a ``422`` response. + :type openai_org_id: str, optional + """ + if openai_org_id is not unset: + kwargs["openai_org_id"] = openai_org_id + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_attributes.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_attributes.py new file mode 100644 index 0000000000..a21df34d31 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_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 Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_authentication_update import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_request import ( + ChatGPTEnterpriseIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_update import ( + ChatGPTEnterpriseIntegrationAccountSettingsUpdate, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_update import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate, + ) + + +class ChatGPTEnterpriseIntegrationAccountUpdateAttributes(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_authentication_update import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_request import ( + ChatGPTEnterpriseIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_update import ( + ChatGPTEnterpriseIntegrationAccountSettingsUpdate, + ) + + return { + "authentication": (ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate,), + "dataflows": (ChatGPTEnterpriseIntegrationDataflowsRequest,), + "name": (str,), + "settings": (ChatGPTEnterpriseIntegrationAccountSettingsUpdate,), + } + + attribute_map = { + "authentication": "authentication", + "dataflows": "dataflows", + "name": "name", + "settings": "settings", + } + + def __init__( + self_, + authentication: Union[ + ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate, + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate, + UnsetType, + ] = unset, + dataflows: Union[ChatGPTEnterpriseIntegrationDataflowsRequest, UnsetType] = unset, + name: Union[str, UnsetType] = unset, + settings: Union[ChatGPTEnterpriseIntegrationAccountSettingsUpdate, UnsetType] = unset, + **kwargs, + ): + """ + Writable attributes used to update a ChatGPT Enterprise integration account. Every field is optional; only the fields provided are changed. When ``dataflows`` is provided, only the dataflow ids included in the request are modified; dataflows omitted from the map keep their current configuration. + + :param authentication: Authentication for updating the ChatGPT Enterprise integration account. Exactly one method is set. + :type authentication: ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate, optional + + :param dataflows: Data Datadog collects from ChatGPT Enterprise, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set ``enabled`` to start or stop it. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow requires a ChatGPT Enterprise workspace with access to the OpenAI Costs API; a dataflow enabled without it is stored but collects no data. + :type dataflows: ChatGPTEnterpriseIntegrationDataflowsRequest, optional + + :param name: Human-readable name of the ChatGPT Enterprise integration account. + :type name: str, optional + + :param settings: Settings for updating the ChatGPT Enterprise integration account. Only the fields provided are changed. + :type settings: ChatGPTEnterpriseIntegrationAccountSettingsUpdate, optional + """ + if authentication is not unset: + kwargs["authentication"] = authentication + if dataflows is not unset: + kwargs["dataflows"] = dataflows + if name is not unset: + kwargs["name"] = name + if settings is not unset: + kwargs["settings"] = settings + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_data.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_data.py new file mode 100644 index 0000000000..d90f887a7a --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_data.py @@ -0,0 +1,64 @@ +# 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.chat_gpt_enterprise_integration_account_update_attributes import ( + ChatGPTEnterpriseIntegrationAccountUpdateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + +class ChatGPTEnterpriseIntegrationAccountUpdateData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_attributes import ( + ChatGPTEnterpriseIntegrationAccountUpdateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + return { + "attributes": (ChatGPTEnterpriseIntegrationAccountUpdateAttributes,), + "id": (str,), + "type": (IntegrationAccountType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__( + self_, + attributes: ChatGPTEnterpriseIntegrationAccountUpdateAttributes, + id: str, + type: IntegrationAccountType, + **kwargs, + ): + """ + Data envelope for updating a ChatGPT Enterprise integration account. + + :param attributes: Writable attributes used to update a ChatGPT Enterprise integration account. Every field is optional; only the fields provided are changed. When ``dataflows`` is provided, only the dataflow ids included in the request are modified; dataflows omitted from the map keep their current configuration. + :type attributes: ChatGPTEnterpriseIntegrationAccountUpdateAttributes + + :param id: Unique identifier of the ChatGPT Enterprise integration account to update. + :type id: str + + :param type: The type of the integration account resource. Always ``integration-account``. + :type type: IntegrationAccountType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_request.py new file mode 100644 index 0000000000..d10d0d57df --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_account_update_request.py @@ -0,0 +1,44 @@ +# 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.chat_gpt_enterprise_integration_account_update_data import ( + ChatGPTEnterpriseIntegrationAccountUpdateData, + ) + + +class ChatGPTEnterpriseIntegrationAccountUpdateRequest(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_data import ( + ChatGPTEnterpriseIntegrationAccountUpdateData, + ) + + return { + "data": (ChatGPTEnterpriseIntegrationAccountUpdateData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: ChatGPTEnterpriseIntegrationAccountUpdateData, **kwargs): + """ + Request payload to update a ChatGPT Enterprise integration account. + + :param data: Data envelope for updating a ChatGPT Enterprise integration account. + :type data: ChatGPTEnterpriseIntegrationAccountUpdateData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_accounts_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_accounts_response.py new file mode 100644 index 0000000000..6cdd6bd74c --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_accounts_response.py @@ -0,0 +1,44 @@ +# 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, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response_data import ( + ChatGPTEnterpriseIntegrationAccountResponseData, + ) + + +class ChatGPTEnterpriseIntegrationAccountsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response_data import ( + ChatGPTEnterpriseIntegrationAccountResponseData, + ) + + return { + "data": ([ChatGPTEnterpriseIntegrationAccountResponseData],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: List[ChatGPTEnterpriseIntegrationAccountResponseData], **kwargs): + """ + Response payload for a list of ChatGPT Enterprise integration accounts. + + :param data: List of ChatGPT Enterprise integration accounts. + :type data: [ChatGPTEnterpriseIntegrationAccountResponseData] + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_request.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_request.py new file mode 100644 index 0000000000..e00912ca83 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_request.py @@ -0,0 +1,72 @@ +# 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.chat_gpt_enterprise_agent_console_integration_dataflow_request import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest, + ) + + +class ChatGPTEnterpriseIntegrationDataflowsRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_agent_console_integration_dataflow_request import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest, + ) + + return { + "chatgpt_enterprise_agent_console": (ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest,), + "chatgpt_enterprise_cloud_cost_data": (ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest,), + } + + attribute_map = { + "chatgpt_enterprise_agent_console": "chatgpt-enterprise-agent-console", + "chatgpt_enterprise_cloud_cost_data": "chatgpt-enterprise-cloud-cost-data", + } + + def __init__( + self_, + chatgpt_enterprise_agent_console: Union[ + ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest, UnsetType + ] = unset, + chatgpt_enterprise_cloud_cost_data: Union[ + ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest, UnsetType + ] = unset, + **kwargs, + ): + """ + Data Datadog collects from ChatGPT Enterprise, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set ``enabled`` to start or stop it. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow requires a ChatGPT Enterprise workspace with access to the OpenAI Costs API; a dataflow enabled without it is stored but collects no data. + + :param chatgpt_enterprise_agent_console: Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them. Data already available from OpenAI appears within 1 hour of enabling this dataflow. + :type chatgpt_enterprise_agent_console: ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest, optional + + :param chatgpt_enterprise_cloud_cost_data: ChatGPT Enterprise costs from the OpenAI Costs API, so that ChatGPT Enterprise spend can be analyzed in `Cloud Cost Management `_. These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts. + :type chatgpt_enterprise_cloud_cost_data: ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest, optional + """ + if chatgpt_enterprise_agent_console is not unset: + kwargs["chatgpt_enterprise_agent_console"] = chatgpt_enterprise_agent_console + if chatgpt_enterprise_cloud_cost_data is not unset: + kwargs["chatgpt_enterprise_cloud_cost_data"] = chatgpt_enterprise_cloud_cost_data + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_response.py b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_response.py new file mode 100644 index 0000000000..430626f811 --- /dev/null +++ b/src/datadog_api_client/v2/model/chat_gpt_enterprise_integration_dataflows_response.py @@ -0,0 +1,68 @@ +# 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.chat_gpt_enterprise_agent_console_integration_dataflow_response import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_response import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse, + ) + + +class ChatGPTEnterpriseIntegrationDataflowsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.chat_gpt_enterprise_agent_console_integration_dataflow_response import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_response import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse, + ) + + return { + "chatgpt_enterprise_agent_console": (ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse,), + "chatgpt_enterprise_cloud_cost_data": (ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse,), + } + + attribute_map = { + "chatgpt_enterprise_agent_console": "chatgpt-enterprise-agent-console", + "chatgpt_enterprise_cloud_cost_data": "chatgpt-enterprise-cloud-cost-data", + } + + def __init__( + self_, + chatgpt_enterprise_agent_console: Union[ + ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse, UnsetType + ] = unset, + chatgpt_enterprise_cloud_cost_data: Union[ + ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse, UnsetType + ] = unset, + **kwargs, + ): + """ + Data Datadog collects from ChatGPT Enterprise, keyed by dataflow id. + + :param chatgpt_enterprise_agent_console: Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them. + :type chatgpt_enterprise_agent_console: ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse, optional + + :param chatgpt_enterprise_cloud_cost_data: ChatGPT Enterprise costs from the OpenAI Costs API, so that ChatGPT Enterprise spend can be analyzed in `Cloud Cost Management `_. These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts. + :type chatgpt_enterprise_cloud_cost_data: ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse, optional + """ + if chatgpt_enterprise_agent_console is not unset: + kwargs["chatgpt_enterprise_agent_console"] = chatgpt_enterprise_agent_console + if chatgpt_enterprise_cloud_cost_data is not unset: + kwargs["chatgpt_enterprise_cloud_cost_data"] = chatgpt_enterprise_cloud_cost_data + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 96db396e60..90dd54e554 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -1641,6 +1641,84 @@ from datadog_api_client.v2.model.change_request_user_relationship import ChangeRequestUserRelationship from datadog_api_client.v2.model.change_request_user_relationship_data import ChangeRequestUserRelationshipData from datadog_api_client.v2.model.chargeback_breakdown import ChargebackBreakdown +from datadog_api_client.v2.model.chat_gpt_enterprise_agent_console_integration_dataflow_request import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_agent_console_integration_dataflow_response import ( + ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_request import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_cloud_cost_data_integration_dataflow_response import ( + ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_authentication_request import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_authentication_response import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_authentication_update import ( + ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_request import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_response import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_type import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_bearer_token_auth_update import ( + ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_attributes import ( + ChatGPTEnterpriseIntegrationAccountCreateAttributes, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_data import ( + ChatGPTEnterpriseIntegrationAccountCreateData, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_create_request import ( + ChatGPTEnterpriseIntegrationAccountCreateRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response import ( + ChatGPTEnterpriseIntegrationAccountResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response_attributes import ( + ChatGPTEnterpriseIntegrationAccountResponseAttributes, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_response_data import ( + ChatGPTEnterpriseIntegrationAccountResponseData, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_request import ( + ChatGPTEnterpriseIntegrationAccountSettingsRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_response import ( + ChatGPTEnterpriseIntegrationAccountSettingsResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_settings_update import ( + ChatGPTEnterpriseIntegrationAccountSettingsUpdate, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_attributes import ( + ChatGPTEnterpriseIntegrationAccountUpdateAttributes, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_data import ( + ChatGPTEnterpriseIntegrationAccountUpdateData, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_account_update_request import ( + ChatGPTEnterpriseIntegrationAccountUpdateRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_accounts_response import ( + ChatGPTEnterpriseIntegrationAccountsResponse, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_request import ( + ChatGPTEnterpriseIntegrationDataflowsRequest, +) +from datadog_api_client.v2.model.chat_gpt_enterprise_integration_dataflows_response import ( + ChatGPTEnterpriseIntegrationDataflowsResponse, +) from datadog_api_client.v2.model.circle_ciapi_key import CircleCIAPIKey from datadog_api_client.v2.model.circle_ciapi_key_api_token import CircleCIAPIKeyApiToken from datadog_api_client.v2.model.circle_ciapi_key_type import CircleCIAPIKeyType @@ -15195,6 +15273,32 @@ "ChangeRequestUserRelationship", "ChangeRequestUserRelationshipData", "ChargebackBreakdown", + "ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest", + "ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse", + "ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest", + "ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse", + "ChatGPTEnterpriseIntegrationAccountAuthenticationRequest", + "ChatGPTEnterpriseIntegrationAccountAuthenticationResponse", + "ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate", + "ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest", + "ChatGPTEnterpriseIntegrationAccountBearerTokenAuthResponse", + "ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType", + "ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate", + "ChatGPTEnterpriseIntegrationAccountCreateAttributes", + "ChatGPTEnterpriseIntegrationAccountCreateData", + "ChatGPTEnterpriseIntegrationAccountCreateRequest", + "ChatGPTEnterpriseIntegrationAccountResponse", + "ChatGPTEnterpriseIntegrationAccountResponseAttributes", + "ChatGPTEnterpriseIntegrationAccountResponseData", + "ChatGPTEnterpriseIntegrationAccountSettingsRequest", + "ChatGPTEnterpriseIntegrationAccountSettingsResponse", + "ChatGPTEnterpriseIntegrationAccountSettingsUpdate", + "ChatGPTEnterpriseIntegrationAccountUpdateAttributes", + "ChatGPTEnterpriseIntegrationAccountUpdateData", + "ChatGPTEnterpriseIntegrationAccountUpdateRequest", + "ChatGPTEnterpriseIntegrationAccountsResponse", + "ChatGPTEnterpriseIntegrationDataflowsRequest", + "ChatGPTEnterpriseIntegrationDataflowsResponse", "CircleCIAPIKey", "CircleCIAPIKeyApiToken", "CircleCIAPIKeyType", diff --git a/tests/v2/features/chatgpt_enterprise_integration.feature b/tests/v2/features/chatgpt_enterprise_integration.feature new file mode 100644 index 0000000000..2b91aa60d6 --- /dev/null +++ b/tests/v2/features/chatgpt_enterprise_integration.feature @@ -0,0 +1,148 @@ +@endpoint(chatgpt-enterprise-integration) @endpoint(chatgpt-enterprise-integration-v2) +Feature: ChatGPT Enterprise Integration + Manage your Datadog ChatGPT Enterprise integration accounts and account + resources directly through the Datadog API. See the [ChatGPT Enterprise + integration page](https://docs.datadoghq.com/integrations/chatgpt- + enterprise/) for more information. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "ChatGPTEnterpriseIntegration" API + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Create a ChatGPT Enterprise integration account returns "Bad Request" response + Given operation "CreateChatGPTEnterpriseIntegrationAccount" enabled + And new "CreateChatGPTEnterpriseIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Create a ChatGPT Enterprise integration account returns "Created" response + Given operation "CreateChatGPTEnterpriseIntegrationAccount" enabled + And new "CreateChatGPTEnterpriseIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 201 Created + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Create a ChatGPT Enterprise integration account returns "Not Found" response + Given operation "CreateChatGPTEnterpriseIntegrationAccount" enabled + And new "CreateChatGPTEnterpriseIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Create a ChatGPT Enterprise integration account returns "The server cannot process the request because it contains invalid data." response + Given operation "CreateChatGPTEnterpriseIntegrationAccount" enabled + And new "CreateChatGPTEnterpriseIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 422 The server cannot process the request because it contains invalid data. + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Delete a ChatGPT Enterprise integration account returns "Bad Request" response + Given operation "DeleteChatGPTEnterpriseIntegrationAccount" enabled + And new "DeleteChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Delete a ChatGPT Enterprise integration account returns "Not Found" response + Given operation "DeleteChatGPTEnterpriseIntegrationAccount" enabled + And new "DeleteChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Delete a ChatGPT Enterprise integration account returns "OK" response + Given operation "DeleteChatGPTEnterpriseIntegrationAccount" enabled + And new "DeleteChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Get a ChatGPT Enterprise integration account returns "Bad Request" response + Given operation "GetChatGPTEnterpriseIntegrationAccount" enabled + And new "GetChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Get a ChatGPT Enterprise integration account returns "Not Found" response + Given operation "GetChatGPTEnterpriseIntegrationAccount" enabled + And new "GetChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Get a ChatGPT Enterprise integration account returns "OK" response + Given operation "GetChatGPTEnterpriseIntegrationAccount" enabled + And new "GetChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/saas-integrations + Scenario: List ChatGPT Enterprise integration accounts returns "Bad Request" response + Given operation "ListChatGPTEnterpriseIntegrationAccounts" enabled + And new "ListChatGPTEnterpriseIntegrationAccounts" request + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/saas-integrations + Scenario: List ChatGPT Enterprise integration accounts returns "Not Found" response + Given operation "ListChatGPTEnterpriseIntegrationAccounts" enabled + And new "ListChatGPTEnterpriseIntegrationAccounts" request + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/saas-integrations + Scenario: List ChatGPT Enterprise integration accounts returns "OK" response + Given operation "ListChatGPTEnterpriseIntegrationAccounts" enabled + And new "ListChatGPTEnterpriseIntegrationAccounts" request + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Update a ChatGPT Enterprise integration account returns "Bad Request" response + Given operation "UpdateChatGPTEnterpriseIntegrationAccount" enabled + And new "UpdateChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "id": "3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03", "type": "integration-account"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Update a ChatGPT Enterprise integration account returns "Not Found" response + Given operation "UpdateChatGPTEnterpriseIntegrationAccount" enabled + And new "UpdateChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "id": "3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03", "type": "integration-account"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Update a ChatGPT Enterprise integration account returns "OK" response + Given operation "UpdateChatGPTEnterpriseIntegrationAccount" enabled + And new "UpdateChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "id": "3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03", "type": "integration-account"}} + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/saas-integrations + Scenario: Update a ChatGPT Enterprise integration account returns "The server cannot process the request because it contains invalid data." response + Given operation "UpdateChatGPTEnterpriseIntegrationAccount" enabled + And new "UpdateChatGPTEnterpriseIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "bearer_token", "token": "your-token"}, "dataflows": {"chatgpt-enterprise-agent-console": {"enabled": true}, "chatgpt-enterprise-cloud-cost-data": {"enabled": true}}, "name": "chatgpt-enterprise-acme", "settings": {"openai_org_id": "org-AbC123dEf456"}}, "id": "3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03", "type": "integration-account"}} + When the request is sent + Then the response status is 422 The server cannot process the request because it contains invalid data. diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index c8de5bd66d..6ea3d29d93 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -4248,6 +4248,43 @@ "type": "safe" } }, + "ListChatGPTEnterpriseIntegrationAccounts": { + "tag": "ChatGPT Enterprise Integration", + "undo": { + "type": "safe" + } + }, + "CreateChatGPTEnterpriseIntegrationAccount": { + "tag": "ChatGPT Enterprise Integration", + "undo": { + "operationId": "DeleteChatGPTEnterpriseIntegrationAccount", + "parameters": [ + { + "name": "account_id", + "source": "data.id" + } + ], + "type": "unsafe" + } + }, + "DeleteChatGPTEnterpriseIntegrationAccount": { + "tag": "ChatGPT Enterprise Integration", + "undo": { + "type": "idempotent" + } + }, + "GetChatGPTEnterpriseIntegrationAccount": { + "tag": "ChatGPT Enterprise Integration", + "undo": { + "type": "safe" + } + }, + "UpdateChatGPTEnterpriseIntegrationAccount": { + "tag": "ChatGPT Enterprise Integration", + "undo": { + "type": "idempotent" + } + }, "ListDatabricksIntegrationAccounts": { "tag": "Databricks Integration", "undo": {