diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 6325ee4e374..638bc2fc092 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.java b/examples/v2/chatgpt-enterprise-integration/CreateChatGPTEnterpriseIntegrationAccount.java
new file mode 100644
index 00000000000..ee74d1cf703
--- /dev/null
+++ b/examples/v2/chatgpt-enterprise-integration/CreateChatGPTEnterpriseIntegrationAccount.java
@@ -0,0 +1,68 @@
+// Create a ChatGPT Enterprise integration account returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.ChatGptEnterpriseIntegrationApi;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountAuthenticationRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountCreateAttributes;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountCreateData;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountCreateRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountResponse;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountSettingsRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationDataflowsRequest;
+import com.datadog.api.client.v2.model.IntegrationAccountType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
+ defaultClient.setUnstableOperationEnabled("v2.createChatGPTEnterpriseIntegrationAccount", true);
+ ChatGptEnterpriseIntegrationApi apiInstance =
+ new ChatGptEnterpriseIntegrationApi(defaultClient);
+
+ ChatGPTEnterpriseIntegrationAccountCreateRequest body =
+ new ChatGPTEnterpriseIntegrationAccountCreateRequest()
+ .data(
+ new ChatGPTEnterpriseIntegrationAccountCreateData()
+ .attributes(
+ new ChatGPTEnterpriseIntegrationAccountCreateAttributes()
+ .authentication(
+ new ChatGPTEnterpriseIntegrationAccountAuthenticationRequest(
+ new ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest()
+ .authType(
+ ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType
+ .BEARER_TOKEN)
+ .token("your-token")))
+ .dataflows(
+ new ChatGPTEnterpriseIntegrationDataflowsRequest()
+ .chatgptEnterpriseAgentConsole(
+ new ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest()
+ .enabled(true))
+ .chatgptEnterpriseCloudCostData(
+ new ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest()
+ .enabled(true)))
+ .name("chatgpt-enterprise-acme")
+ .settings(
+ new ChatGPTEnterpriseIntegrationAccountSettingsRequest()
+ .openaiOrgId("org-AbC123dEf456")))
+ .type(IntegrationAccountType.INTEGRATION_ACCOUNT));
+
+ try {
+ ChatGPTEnterpriseIntegrationAccountResponse result =
+ apiInstance.createChatGPTEnterpriseIntegrationAccount(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling"
+ + " ChatGptEnterpriseIntegrationApi#createChatGPTEnterpriseIntegrationAccount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/chatgpt-enterprise-integration/DeleteChatGPTEnterpriseIntegrationAccount.java b/examples/v2/chatgpt-enterprise-integration/DeleteChatGPTEnterpriseIntegrationAccount.java
new file mode 100644
index 00000000000..e52af763c9b
--- /dev/null
+++ b/examples/v2/chatgpt-enterprise-integration/DeleteChatGPTEnterpriseIntegrationAccount.java
@@ -0,0 +1,27 @@
+// Delete a ChatGPT Enterprise integration account returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.ChatGptEnterpriseIntegrationApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
+ defaultClient.setUnstableOperationEnabled("v2.deleteChatGPTEnterpriseIntegrationAccount", true);
+ ChatGptEnterpriseIntegrationApi apiInstance =
+ new ChatGptEnterpriseIntegrationApi(defaultClient);
+
+ try {
+ apiInstance.deleteChatGPTEnterpriseIntegrationAccount("account_id");
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling"
+ + " ChatGptEnterpriseIntegrationApi#deleteChatGPTEnterpriseIntegrationAccount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/chatgpt-enterprise-integration/GetChatGPTEnterpriseIntegrationAccount.java b/examples/v2/chatgpt-enterprise-integration/GetChatGPTEnterpriseIntegrationAccount.java
new file mode 100644
index 00000000000..7d16ca9fcf3
--- /dev/null
+++ b/examples/v2/chatgpt-enterprise-integration/GetChatGPTEnterpriseIntegrationAccount.java
@@ -0,0 +1,30 @@
+// Get a ChatGPT Enterprise integration account returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.ChatGptEnterpriseIntegrationApi;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
+ defaultClient.setUnstableOperationEnabled("v2.getChatGPTEnterpriseIntegrationAccount", true);
+ ChatGptEnterpriseIntegrationApi apiInstance =
+ new ChatGptEnterpriseIntegrationApi(defaultClient);
+
+ try {
+ ChatGPTEnterpriseIntegrationAccountResponse result =
+ apiInstance.getChatGPTEnterpriseIntegrationAccount("account_id");
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling"
+ + " ChatGptEnterpriseIntegrationApi#getChatGPTEnterpriseIntegrationAccount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/chatgpt-enterprise-integration/ListChatGPTEnterpriseIntegrationAccounts.java b/examples/v2/chatgpt-enterprise-integration/ListChatGPTEnterpriseIntegrationAccounts.java
new file mode 100644
index 00000000000..9f9ea8ff5ee
--- /dev/null
+++ b/examples/v2/chatgpt-enterprise-integration/ListChatGPTEnterpriseIntegrationAccounts.java
@@ -0,0 +1,30 @@
+// List ChatGPT Enterprise integration accounts returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.ChatGptEnterpriseIntegrationApi;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountsResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
+ defaultClient.setUnstableOperationEnabled("v2.listChatGPTEnterpriseIntegrationAccounts", true);
+ ChatGptEnterpriseIntegrationApi apiInstance =
+ new ChatGptEnterpriseIntegrationApi(defaultClient);
+
+ try {
+ ChatGPTEnterpriseIntegrationAccountsResponse result =
+ apiInstance.listChatGPTEnterpriseIntegrationAccounts();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling"
+ + " ChatGptEnterpriseIntegrationApi#listChatGPTEnterpriseIntegrationAccounts");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/chatgpt-enterprise-integration/UpdateChatGPTEnterpriseIntegrationAccount.java b/examples/v2/chatgpt-enterprise-integration/UpdateChatGPTEnterpriseIntegrationAccount.java
new file mode 100644
index 00000000000..21e5a4d6db4
--- /dev/null
+++ b/examples/v2/chatgpt-enterprise-integration/UpdateChatGPTEnterpriseIntegrationAccount.java
@@ -0,0 +1,69 @@
+// Update a ChatGPT Enterprise integration account returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.ChatGptEnterpriseIntegrationApi;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountResponse;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountSettingsUpdate;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountUpdateAttributes;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountUpdateData;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountUpdateRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationDataflowsRequest;
+import com.datadog.api.client.v2.model.IntegrationAccountType;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
+ defaultClient.setUnstableOperationEnabled("v2.updateChatGPTEnterpriseIntegrationAccount", true);
+ ChatGptEnterpriseIntegrationApi apiInstance =
+ new ChatGptEnterpriseIntegrationApi(defaultClient);
+
+ ChatGPTEnterpriseIntegrationAccountUpdateRequest body =
+ new ChatGPTEnterpriseIntegrationAccountUpdateRequest()
+ .data(
+ new ChatGPTEnterpriseIntegrationAccountUpdateData()
+ .attributes(
+ new ChatGPTEnterpriseIntegrationAccountUpdateAttributes()
+ .authentication(
+ new ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate(
+ new ChatGPTEnterpriseIntegrationAccountBearerTokenAuthUpdate()
+ .authType(
+ ChatGPTEnterpriseIntegrationAccountBearerTokenAuthType
+ .BEARER_TOKEN)
+ .token("your-token")))
+ .dataflows(
+ new ChatGPTEnterpriseIntegrationDataflowsRequest()
+ .chatgptEnterpriseAgentConsole(
+ new ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest()
+ .enabled(true))
+ .chatgptEnterpriseCloudCostData(
+ new ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest()
+ .enabled(true)))
+ .name("chatgpt-enterprise-acme")
+ .settings(
+ new ChatGPTEnterpriseIntegrationAccountSettingsUpdate()
+ .openaiOrgId("org-AbC123dEf456")))
+ .id("3e8a1f6b-9c2d-4b7e-8a5f-6d1c4e9b2a03")
+ .type(IntegrationAccountType.INTEGRATION_ACCOUNT));
+
+ try {
+ ChatGPTEnterpriseIntegrationAccountResponse result =
+ apiInstance.updateChatGPTEnterpriseIntegrationAccount("account_id", body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling"
+ + " ChatGptEnterpriseIntegrationApi#updateChatGPTEnterpriseIntegrationAccount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java
index 39a8c9f10ba..d72483bb523 100644
--- a/src/main/java/com/datadog/api/client/ApiClient.java
+++ b/src/main/java/com/datadog/api/client/ApiClient.java
@@ -1530,6 +1530,11 @@ public class ApiClient {
put("v2.updateIncidentUserDefinedField", false);
put("v2.updateIncidentUserDefinedRole", false);
put("v2.updateTimestampOverride", false);
+ put("v2.createChatGPTEnterpriseIntegrationAccount", false);
+ put("v2.deleteChatGPTEnterpriseIntegrationAccount", false);
+ put("v2.getChatGPTEnterpriseIntegrationAccount", false);
+ put("v2.listChatGPTEnterpriseIntegrationAccounts", false);
+ put("v2.updateChatGPTEnterpriseIntegrationAccount", false);
put("v2.createDatabricksIntegrationAccount", false);
put("v2.deleteDatabricksIntegrationAccount", false);
put("v2.getDatabricksIntegrationAccount", false);
diff --git a/src/main/java/com/datadog/api/client/v2/api/ChatGptEnterpriseIntegrationApi.java b/src/main/java/com/datadog/api/client/v2/api/ChatGptEnterpriseIntegrationApi.java
new file mode 100644
index 00000000000..81fa46a6ff0
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/api/ChatGptEnterpriseIntegrationApi.java
@@ -0,0 +1,854 @@
+package com.datadog.api.client.v2.api;
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.ApiResponse;
+import com.datadog.api.client.Pair;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountCreateRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountResponse;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountUpdateRequest;
+import com.datadog.api.client.v2.model.ChatGPTEnterpriseIntegrationAccountsResponse;
+import jakarta.ws.rs.client.Invocation;
+import jakarta.ws.rs.core.GenericType;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.CompletableFuture;
+
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ChatGptEnterpriseIntegrationApi {
+ private ApiClient apiClient;
+
+ public ChatGptEnterpriseIntegrationApi() {
+ this(ApiClient.getDefaultApiClient());
+ }
+
+ public ChatGptEnterpriseIntegrationApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client.
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client.
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Create a ChatGPT Enterprise integration account.
+ *
+ *
See {@link #createChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param body (required)
+ * @return ChatGPTEnterpriseIntegrationAccountResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ChatGPTEnterpriseIntegrationAccountResponse createChatGPTEnterpriseIntegrationAccount(
+ ChatGPTEnterpriseIntegrationAccountCreateRequest body) throws ApiException {
+ return createChatGPTEnterpriseIntegrationAccountWithHttpInfo(body).getData();
+ }
+
+ /**
+ * Create a ChatGPT Enterprise integration account.
+ *
+ *
See {@link #createChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync}.
+ *
+ * @param body (required)
+ * @return CompletableFuture<ChatGPTEnterpriseIntegrationAccountResponse>
+ */
+ public CompletableFuture
+ createChatGPTEnterpriseIntegrationAccountAsync(
+ ChatGPTEnterpriseIntegrationAccountCreateRequest body) {
+ return createChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(body)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Create a ChatGPT Enterprise integration account.
+ *
+ * @param body (required)
+ * @return ApiResponse<ChatGPTEnterpriseIntegrationAccountResponse>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 201 | Created | - |
+ * | 400 | Bad Request | - |
+ * | 403 | Forbidden | - |
+ * | 404 | Not Found | - |
+ * | 422 | The server cannot process the request because it contains invalid data. | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ createChatGPTEnterpriseIntegrationAccountWithHttpInfo(
+ ChatGPTEnterpriseIntegrationAccountCreateRequest body) throws ApiException {
+ // Check if unstable operation is enabled
+ String operationId = "createChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " createChatGPTEnterpriseIntegrationAccount");
+ }
+ // create path and map variables
+ String localVarPath = "/api/v2/integration-interfaces/chatgpt-enterprise/accounts";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.createChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Create a ChatGPT Enterprise integration account.
+ *
+ * See {@link #createChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param body (required)
+ * @return CompletableFuture<ApiResponse<ChatGPTEnterpriseIntegrationAccountResponse>>
+ */
+ public CompletableFuture>
+ createChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(
+ ChatGPTEnterpriseIntegrationAccountCreateRequest body) {
+ // Check if unstable operation is enabled
+ String operationId = "createChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
+ return result;
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " createChatGPTEnterpriseIntegrationAccount"));
+ return result;
+ }
+ // create path and map variables
+ String localVarPath = "/api/v2/integration-interfaces/chatgpt-enterprise/accounts";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.createChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Delete a ChatGPT Enterprise integration account.
+ *
+ * See {@link #deleteChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void deleteChatGPTEnterpriseIntegrationAccount(String accountId) throws ApiException {
+ deleteChatGPTEnterpriseIntegrationAccountWithHttpInfo(accountId);
+ }
+
+ /**
+ * Delete a ChatGPT Enterprise integration account.
+ *
+ *
See {@link #deleteChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @return CompletableFuture
+ */
+ public CompletableFuture deleteChatGPTEnterpriseIntegrationAccountAsync(String accountId) {
+ return deleteChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(accountId)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Delete a ChatGPT Enterprise integration account.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 200 | OK | - |
+ * | 400 | Bad Request | - |
+ * | 403 | Forbidden | - |
+ * | 404 | Not Found | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse deleteChatGPTEnterpriseIntegrationAccountWithHttpInfo(String accountId)
+ throws ApiException {
+ // Check if unstable operation is enabled
+ String operationId = "deleteChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
+ }
+ Object localVarPostBody = null;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'accountId' when calling"
+ + " deleteChatGPTEnterpriseIntegrationAccount");
+ }
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}"
+ .replaceAll("\\{" + "account_id" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.deleteChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"*/*"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "DELETE",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ null);
+ }
+
+ /**
+ * Delete a ChatGPT Enterprise integration account.
+ *
+ * See {@link #deleteChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @return CompletableFuture<ApiResponse<Void>>
+ */
+ public CompletableFuture>
+ deleteChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(String accountId) {
+ // Check if unstable operation is enabled
+ String operationId = "deleteChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
+ return result;
+ }
+ Object localVarPostBody = null;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'accountId' when calling"
+ + " deleteChatGPTEnterpriseIntegrationAccount"));
+ return result;
+ }
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}"
+ .replaceAll("\\{" + "account_id" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.deleteChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"*/*"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "DELETE",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ null);
+ }
+
+ /**
+ * Get a ChatGPT Enterprise integration account.
+ *
+ * See {@link #getChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @return ChatGPTEnterpriseIntegrationAccountResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ChatGPTEnterpriseIntegrationAccountResponse getChatGPTEnterpriseIntegrationAccount(
+ String accountId) throws ApiException {
+ return getChatGPTEnterpriseIntegrationAccountWithHttpInfo(accountId).getData();
+ }
+
+ /**
+ * Get a ChatGPT Enterprise integration account.
+ *
+ *
See {@link #getChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @return CompletableFuture<ChatGPTEnterpriseIntegrationAccountResponse>
+ */
+ public CompletableFuture
+ getChatGPTEnterpriseIntegrationAccountAsync(String accountId) {
+ return getChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(accountId)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Get a ChatGPT Enterprise integration account.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @return ApiResponse<ChatGPTEnterpriseIntegrationAccountResponse>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 200 | OK | - |
+ * | 400 | Bad Request | - |
+ * | 403 | Forbidden | - |
+ * | 404 | Not Found | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ getChatGPTEnterpriseIntegrationAccountWithHttpInfo(String accountId) throws ApiException {
+ // Check if unstable operation is enabled
+ String operationId = "getChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
+ }
+ Object localVarPostBody = null;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'accountId' when calling"
+ + " getChatGPTEnterpriseIntegrationAccount");
+ }
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}"
+ .replaceAll("\\{" + "account_id" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.getChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Get a ChatGPT Enterprise integration account.
+ *
+ * See {@link #getChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @return CompletableFuture<ApiResponse<ChatGPTEnterpriseIntegrationAccountResponse>>
+ */
+ public CompletableFuture>
+ getChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(String accountId) {
+ // Check if unstable operation is enabled
+ String operationId = "getChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
+ return result;
+ }
+ Object localVarPostBody = null;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'accountId' when calling"
+ + " getChatGPTEnterpriseIntegrationAccount"));
+ return result;
+ }
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}"
+ .replaceAll("\\{" + "account_id" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.getChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * List ChatGPT Enterprise integration accounts.
+ *
+ * See {@link #listChatGPTEnterpriseIntegrationAccountsWithHttpInfo}.
+ *
+ * @return ChatGPTEnterpriseIntegrationAccountsResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ChatGPTEnterpriseIntegrationAccountsResponse listChatGPTEnterpriseIntegrationAccounts()
+ throws ApiException {
+ return listChatGPTEnterpriseIntegrationAccountsWithHttpInfo().getData();
+ }
+
+ /**
+ * List ChatGPT Enterprise integration accounts.
+ *
+ *
See {@link #listChatGPTEnterpriseIntegrationAccountsWithHttpInfoAsync}.
+ *
+ * @return CompletableFuture<ChatGPTEnterpriseIntegrationAccountsResponse>
+ */
+ public CompletableFuture
+ listChatGPTEnterpriseIntegrationAccountsAsync() {
+ return listChatGPTEnterpriseIntegrationAccountsWithHttpInfoAsync()
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * List ChatGPT Enterprise integration accounts.
+ *
+ * @return ApiResponse<ChatGPTEnterpriseIntegrationAccountsResponse>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 200 | OK | - |
+ * | 400 | Bad Request | - |
+ * | 403 | Forbidden | - |
+ * | 404 | Not Found | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ listChatGPTEnterpriseIntegrationAccountsWithHttpInfo() throws ApiException {
+ // Check if unstable operation is enabled
+ String operationId = "listChatGPTEnterpriseIntegrationAccounts";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
+ }
+ Object localVarPostBody = null;
+ // create path and map variables
+ String localVarPath = "/api/v2/integration-interfaces/chatgpt-enterprise/accounts";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.listChatGPTEnterpriseIntegrationAccounts",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * List ChatGPT Enterprise integration accounts.
+ *
+ * See {@link #listChatGPTEnterpriseIntegrationAccountsWithHttpInfo}.
+ *
+ * @return
+ * CompletableFuture<ApiResponse<ChatGPTEnterpriseIntegrationAccountsResponse>>
+ */
+ public CompletableFuture>
+ listChatGPTEnterpriseIntegrationAccountsWithHttpInfoAsync() {
+ // Check if unstable operation is enabled
+ String operationId = "listChatGPTEnterpriseIntegrationAccounts";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
+ return result;
+ }
+ Object localVarPostBody = null;
+ // create path and map variables
+ String localVarPath = "/api/v2/integration-interfaces/chatgpt-enterprise/accounts";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.listChatGPTEnterpriseIntegrationAccounts",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Update a ChatGPT Enterprise integration account.
+ *
+ * See {@link #updateChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @param body (required)
+ * @return ChatGPTEnterpriseIntegrationAccountResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ChatGPTEnterpriseIntegrationAccountResponse updateChatGPTEnterpriseIntegrationAccount(
+ String accountId, ChatGPTEnterpriseIntegrationAccountUpdateRequest body) throws ApiException {
+ return updateChatGPTEnterpriseIntegrationAccountWithHttpInfo(accountId, body).getData();
+ }
+
+ /**
+ * Update a ChatGPT Enterprise integration account.
+ *
+ *
See {@link #updateChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @param body (required)
+ * @return CompletableFuture<ChatGPTEnterpriseIntegrationAccountResponse>
+ */
+ public CompletableFuture
+ updateChatGPTEnterpriseIntegrationAccountAsync(
+ String accountId, ChatGPTEnterpriseIntegrationAccountUpdateRequest body) {
+ return updateChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(accountId, body)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Update a ChatGPT Enterprise integration account. Only the fields provided are changed.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @param body (required)
+ * @return ApiResponse<ChatGPTEnterpriseIntegrationAccountResponse>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 200 | OK | - |
+ * | 400 | Bad Request | - |
+ * | 403 | Forbidden | - |
+ * | 404 | Not Found | - |
+ * | 422 | The server cannot process the request because it contains invalid data. | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ updateChatGPTEnterpriseIntegrationAccountWithHttpInfo(
+ String accountId, ChatGPTEnterpriseIntegrationAccountUpdateRequest body)
+ throws ApiException {
+ // Check if unstable operation is enabled
+ String operationId = "updateChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'accountId' when calling"
+ + " updateChatGPTEnterpriseIntegrationAccount");
+ }
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " updateChatGPTEnterpriseIntegrationAccount");
+ }
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}"
+ .replaceAll("\\{" + "account_id" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.updateChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "PATCH",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Update a ChatGPT Enterprise integration account.
+ *
+ * See {@link #updateChatGPTEnterpriseIntegrationAccountWithHttpInfo}.
+ *
+ * @param accountId Unique identifier of the integration account. (required)
+ * @param body (required)
+ * @return CompletableFuture<ApiResponse<ChatGPTEnterpriseIntegrationAccountResponse>>
+ */
+ public CompletableFuture>
+ updateChatGPTEnterpriseIntegrationAccountWithHttpInfoAsync(
+ String accountId, ChatGPTEnterpriseIntegrationAccountUpdateRequest body) {
+ // Check if unstable operation is enabled
+ String operationId = "updateChatGPTEnterpriseIntegrationAccount";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
+ return result;
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'accountId' when calling"
+ + " updateChatGPTEnterpriseIntegrationAccount"));
+ return result;
+ }
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " updateChatGPTEnterpriseIntegrationAccount"));
+ return result;
+ }
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}"
+ .replaceAll("\\{" + "account_id" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.ChatGptEnterpriseIntegrationApi.updateChatGPTEnterpriseIntegrationAccount",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "PATCH",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest.java b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest.java
new file mode 100644
index 00000000000..d1990bfcb5d
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest.java
@@ -0,0 +1,101 @@
+/*
+ * 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.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.Objects;
+
+/**
+ * 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.
+ */
+@JsonPropertyOrder({ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest.JSON_PROPERTY_ENABLED})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ENABLED = "enabled";
+ private Boolean enabled;
+
+ public ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest() {}
+
+ @JsonCreator
+ public ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest(
+ @JsonProperty(required = true, value = JSON_PROPERTY_ENABLED) Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest enabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Whether Datadog collects this data. Defaults to true; set to false to
+ * stop collection.
+ *
+ * @return enabled
+ */
+ @JsonProperty(JSON_PROPERTY_ENABLED)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ /**
+ * Return true if this ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest object is equal to
+ * o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest
+ chatGptEnterpriseAgentConsoleIntegrationDataflowRequest =
+ (ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest) o;
+ return Objects.equals(
+ this.enabled, chatGptEnterpriseAgentConsoleIntegrationDataflowRequest.enabled);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(enabled);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest {\n");
+ sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse.java b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse.java
new file mode 100644
index 00000000000..f695ef9f56f
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse.java
@@ -0,0 +1,169 @@
+/*
+ * 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.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * 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.
+ */
+@JsonPropertyOrder({
+ ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse.JSON_PROPERTY_ENABLED,
+ ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse.JSON_PROPERTY_STATUS
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ENABLED = "enabled";
+ private Boolean enabled;
+
+ public static final String JSON_PROPERTY_STATUS = "status";
+ private IntegrationAccountDataflowStatus status;
+
+ public ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse enabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Whether Datadog collects this data.
+ *
+ * @return enabled
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENABLED)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ /**
+ * Read-only collection status of a dataflow.
+ *
+ * @return status
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_STATUS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public IntegrationAccountDataflowStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse
+ */
+ @JsonAnySetter
+ public ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse putAdditionalProperty(
+ String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /**
+ * Return true if this ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse object is equal to
+ * o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse
+ chatGptEnterpriseAgentConsoleIntegrationDataflowResponse =
+ (ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse) o;
+ return Objects.equals(
+ this.enabled, chatGptEnterpriseAgentConsoleIntegrationDataflowResponse.enabled)
+ && Objects.equals(
+ this.status, chatGptEnterpriseAgentConsoleIntegrationDataflowResponse.status)
+ && Objects.equals(
+ this.additionalProperties,
+ chatGptEnterpriseAgentConsoleIntegrationDataflowResponse.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(enabled, status, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse {\n");
+ sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest.java b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest.java
new file mode 100644
index 00000000000..47015e3bfda
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest.java
@@ -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.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.Objects;
+
+/**
+ * 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.
+ */
+@JsonPropertyOrder({ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest.JSON_PROPERTY_ENABLED})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ENABLED = "enabled";
+ private Boolean enabled;
+
+ public ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest enabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Whether Datadog collects this data. Defaults to false; set to true to
+ * start collection.
+ *
+ * @return enabled
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENABLED)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ /**
+ * Return true if this ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest object is equal to
+ * o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest
+ chatGptEnterpriseCloudCostDataIntegrationDataflowRequest =
+ (ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest) o;
+ return Objects.equals(
+ this.enabled, chatGptEnterpriseCloudCostDataIntegrationDataflowRequest.enabled);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(enabled);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest {\n");
+ sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse.java b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse.java
new file mode 100644
index 00000000000..df75cdf6d7c
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse.java
@@ -0,0 +1,170 @@
+/*
+ * 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.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * 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.
+ */
+@JsonPropertyOrder({
+ ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse.JSON_PROPERTY_ENABLED,
+ ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse.JSON_PROPERTY_STATUS
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ENABLED = "enabled";
+ private Boolean enabled;
+
+ public static final String JSON_PROPERTY_STATUS = "status";
+ private IntegrationAccountDataflowStatus status;
+
+ public ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse enabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Whether Datadog collects this data.
+ *
+ * @return enabled
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENABLED)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ /**
+ * Read-only collection status of a dataflow.
+ *
+ * @return status
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_STATUS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public IntegrationAccountDataflowStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse
+ */
+ @JsonAnySetter
+ public ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse putAdditionalProperty(
+ String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /**
+ * Return true if this ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse object is equal
+ * to o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse
+ chatGptEnterpriseCloudCostDataIntegrationDataflowResponse =
+ (ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse) o;
+ return Objects.equals(
+ this.enabled, chatGptEnterpriseCloudCostDataIntegrationDataflowResponse.enabled)
+ && Objects.equals(
+ this.status, chatGptEnterpriseCloudCostDataIntegrationDataflowResponse.status)
+ && Objects.equals(
+ this.additionalProperties,
+ chatGptEnterpriseCloudCostDataIntegrationDataflowResponse.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(enabled, status, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse {\n");
+ sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseIntegrationAccountAuthenticationRequest.java b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseIntegrationAccountAuthenticationRequest.java
new file mode 100644
index 00000000000..b2be90d4fd4
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ChatGPTEnterpriseIntegrationAccountAuthenticationRequest.java
@@ -0,0 +1,256 @@
+/*
+ * 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.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.datadog.api.client.AbstractOpenApiSchema;
+import com.datadog.api.client.JSON;
+import com.datadog.api.client.UnparsedObject;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.MapperFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import jakarta.ws.rs.core.GenericType;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+@JsonDeserialize(
+ using =
+ ChatGPTEnterpriseIntegrationAccountAuthenticationRequest
+ .ChatGPTEnterpriseIntegrationAccountAuthenticationRequestDeserializer.class)
+@JsonSerialize(
+ using =
+ ChatGPTEnterpriseIntegrationAccountAuthenticationRequest
+ .ChatGPTEnterpriseIntegrationAccountAuthenticationRequestSerializer.class)
+public class ChatGPTEnterpriseIntegrationAccountAuthenticationRequest
+ extends AbstractOpenApiSchema {
+ private static final Logger log =
+ Logger.getLogger(ChatGPTEnterpriseIntegrationAccountAuthenticationRequest.class.getName());
+
+ @JsonIgnore public boolean unparsed = false;
+
+ public static class ChatGPTEnterpriseIntegrationAccountAuthenticationRequestSerializer
+ extends StdSerializer {
+ public ChatGPTEnterpriseIntegrationAccountAuthenticationRequestSerializer(
+ Class t) {
+ super(t);
+ }
+
+ public ChatGPTEnterpriseIntegrationAccountAuthenticationRequestSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(
+ ChatGPTEnterpriseIntegrationAccountAuthenticationRequest value,
+ JsonGenerator jgen,
+ SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.getActualInstance());
+ }
+ }
+
+ public static class ChatGPTEnterpriseIntegrationAccountAuthenticationRequestDeserializer
+ extends StdDeserializer {
+ public ChatGPTEnterpriseIntegrationAccountAuthenticationRequestDeserializer() {
+ this(ChatGPTEnterpriseIntegrationAccountAuthenticationRequest.class);
+ }
+
+ public ChatGPTEnterpriseIntegrationAccountAuthenticationRequestDeserializer(Class> vc) {
+ super(vc);
+ }
+
+ @Override
+ public ChatGPTEnterpriseIntegrationAccountAuthenticationRequest deserialize(
+ JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
+ JsonNode tree = jp.readValueAsTree();
+ Object deserialized = null;
+ Object tmp = null;
+ boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
+ int match = 0;
+ JsonToken token = tree.traverse(jp.getCodec()).nextToken();
+ // deserialize ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest
+ try {
+ boolean attemptParsing = true;
+ // ensure that we respect type coercion as set on the client ObjectMapper
+ if (ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(Integer.class)
+ || ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(Long.class)
+ || ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(Float.class)
+ || ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(Double.class)
+ || ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(Boolean.class)
+ || ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(
+ String.class)) {
+ attemptParsing = typeCoercion;
+ if (!attemptParsing) {
+ attemptParsing |=
+ ((ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(
+ Integer.class)
+ || ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(
+ Long.class))
+ && token == JsonToken.VALUE_NUMBER_INT);
+ attemptParsing |=
+ ((ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(
+ Float.class)
+ || ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(
+ Double.class))
+ && (token == JsonToken.VALUE_NUMBER_FLOAT
+ || token == JsonToken.VALUE_NUMBER_INT));
+ attemptParsing |=
+ (ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(
+ Boolean.class)
+ && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
+ attemptParsing |=
+ (ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class.equals(
+ String.class)
+ && token == JsonToken.VALUE_STRING);
+ }
+ }
+ if (attemptParsing) {
+ tmp =
+ tree.traverse(jp.getCodec())
+ .readValueAs(ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest.class);
+ // TODO: there is no validation against JSON schema constraints
+ // (min, max, enum, pattern...), this does not perform a strict JSON
+ // validation, which means the 'match' count may be higher than it should be.
+ if (!((ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest) tmp).unparsed) {
+ deserialized = tmp;
+ match++;
+ }
+ log.log(
+ Level.FINER,
+ "Input data matches schema"
+ + " 'ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest'");
+ }
+ } catch (Exception e) {
+ // deserialization failed, continue
+ log.log(
+ Level.FINER,
+ "Input data does not match schema"
+ + " 'ChatGPTEnterpriseIntegrationAccountBearerTokenAuthRequest'",
+ e);
+ }
+
+ ChatGPTEnterpriseIntegrationAccountAuthenticationRequest ret =
+ new ChatGPTEnterpriseIntegrationAccountAuthenticationRequest();
+ if (match == 1) {
+ ret.setActualInstance(deserialized);
+ } else {
+ Map res =
+ new ObjectMapper()
+ .readValue(
+ tree.traverse(jp.getCodec()).readValueAsTree().toString(),
+ new TypeReference