diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 614a39995e8..86acb3682c3 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -4193,11 +4193,6 @@ components:
AnyValueString:
description: A scalar string value.
type: string
- ApiID:
- description: API identifier.
- example: "90646597-5fdb-4a17-a240-647003f8c028"
- format: uuid
- type: string
ApmDependencyStatName:
description: The APM dependency statistic to query.
enum:
@@ -16908,29 +16903,6 @@ components:
required:
- type
type: object
- CreateOpenAPIResponse:
- description: Response for `CreateOpenAPI` operation.
- properties:
- data:
- $ref: "#/components/schemas/CreateOpenAPIResponseData"
- type: object
- CreateOpenAPIResponseAttributes:
- description: Attributes for `CreateOpenAPI`.
- properties:
- failed_endpoints:
- description: List of endpoints which couldn't be parsed.
- items:
- $ref: "#/components/schemas/OpenAPIEndpoint"
- type: array
- type: object
- CreateOpenAPIResponseData:
- description: Data envelope for `CreateOpenAPIResponse`.
- properties:
- attributes:
- $ref: "#/components/schemas/CreateOpenAPIResponseAttributes"
- id:
- $ref: "#/components/schemas/ApiID"
- type: object
CreateOrUpdateWidgetRequest:
description: Request body for creating or updating a widget.
properties:
@@ -40455,58 +40427,6 @@ components:
- first
- last
type: object
- ListAPIsResponse:
- description: Response for `ListAPIs`.
- properties:
- data:
- description: List of API items.
- items:
- $ref: "#/components/schemas/ListAPIsResponseData"
- type: array
- meta:
- $ref: "#/components/schemas/ListAPIsResponseMeta"
- type: object
- ListAPIsResponseData:
- description: Data envelope for `ListAPIsResponse`.
- properties:
- attributes:
- $ref: "#/components/schemas/ListAPIsResponseDataAttributes"
- id:
- $ref: "#/components/schemas/ApiID"
- type: object
- ListAPIsResponseDataAttributes:
- description: Attributes for `ListAPIsResponseData`.
- properties:
- name:
- description: API name.
- example: "Payments API"
- type: string
- type: object
- ListAPIsResponseMeta:
- description: Metadata for `ListAPIsResponse`.
- properties:
- pagination:
- $ref: "#/components/schemas/ListAPIsResponseMetaPagination"
- type: object
- ListAPIsResponseMetaPagination:
- description: Pagination metadata information for `ListAPIsResponse`.
- properties:
- limit:
- description: Number of items in the current page.
- example: 20
- format: int64
- type: integer
- offset:
- description: Offset for pagination.
- example: 0
- format: int64
- type: integer
- total_count:
- description: Total number of items.
- example: 35
- format: int64
- type: integer
- type: object
ListAllocationsResponse:
description: Response containing a list of targeting rules (allocations).
properties:
@@ -51598,24 +51518,6 @@ components:
required:
- type
type: object
- OpenAPIEndpoint:
- description: Endpoint info extracted from an `OpenAPI` specification.
- properties:
- method:
- description: The endpoint method.
- type: string
- path:
- description: The endpoint path.
- type: string
- type: object
- OpenAPIFile:
- description: Object for API data in an `OpenAPI` format as a file.
- properties:
- openapi_spec_file:
- description: Binary `OpenAPI` spec file
- format: binary
- type: string
- type: object
OpsgenieServiceCreateAttributes:
description: The Opsgenie service attributes for a create request.
properties:
@@ -80330,29 +80232,6 @@ components:
required:
- type
type: object
- UpdateOpenAPIResponse:
- description: Response for `UpdateOpenAPI`.
- properties:
- data:
- $ref: "#/components/schemas/UpdateOpenAPIResponseData"
- type: object
- UpdateOpenAPIResponseAttributes:
- description: Attributes for `UpdateOpenAPI`.
- properties:
- failed_endpoints:
- description: List of endpoints which couldn't be parsed.
- items:
- $ref: "#/components/schemas/OpenAPIEndpoint"
- type: array
- type: object
- UpdateOpenAPIResponseData:
- description: Data envelope for `UpdateOpenAPIResponse`.
- properties:
- attributes:
- $ref: "#/components/schemas/UpdateOpenAPIResponseAttributes"
- id:
- $ref: "#/components/schemas/ApiID"
- type: object
UpdateOutcomesAsyncAttributes:
description: The JSON:API attributes for a batched set of scorecard outcomes.
properties:
@@ -86638,288 +86517,6 @@ paths:
operator: OR
permissions:
- api_keys_write
- /api/v2/apicatalog/api:
- get:
- deprecated: true
- description: List APIs and their IDs.
- operationId: ListAPIs
- parameters:
- - description: Filter APIs by name
- in: query
- name: query
- required: false
- schema:
- example: "payments"
- type: string
- - description: Number of items per page.
- in: query
- name: page[limit]
- required: false
- schema:
- default: 20
- format: int64
- minimum: 1
- type: integer
- - description: Offset for pagination.
- in: query
- name: page[offset]
- required: false
- schema:
- default: 0
- format: int64
- minimum: 0
- type: integer
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ListAPIsResponse"
- description: OK
- "400":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Bad request
- "403":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Forbidden
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- security:
- - apiKeyAuth: []
- appKeyAuth: []
- - AuthZ:
- - apm_api_catalog_read
- summary: List APIs
- tags: ["API Management"]
- "x-permission":
- operator: OR
- permissions:
- - apm_api_catalog_read
- x-unstable: |-
- **Note**: This endpoint is deprecated.
- /api/v2/apicatalog/api/{id}:
- delete:
- deprecated: true
- description: Delete a specific API by ID.
- operationId: DeleteOpenAPI
- parameters:
- - description: ID of the API to delete
- in: path
- name: id
- required: true
- schema:
- $ref: "#/components/schemas/ApiID"
- responses:
- "204":
- description: API deleted successfully
- "400":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Bad request
- "403":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Forbidden
- "404":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: API not found error
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- security:
- - apiKeyAuth: []
- appKeyAuth: []
- - AuthZ:
- - apm_api_catalog_write
- summary: Delete an API
- tags: ["API Management"]
- "x-permission":
- operator: OR
- permissions:
- - apm_api_catalog_write
- x-unstable: |-
- **Note**: This endpoint is deprecated.
- /api/v2/apicatalog/api/{id}/openapi:
- get:
- deprecated: true
- description: Retrieve information about a specific API in [OpenAPI](https://spec.openapis.org/oas/latest.html) format file.
- operationId: GetOpenAPI
- parameters:
- - description: ID of the API to retrieve
- in: path
- name: id
- required: true
- schema:
- $ref: "#/components/schemas/ApiID"
- responses:
- "200":
- content:
- multipart/form-data:
- schema:
- format: binary
- type: string
- description: OK
- "400":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Bad request
- "403":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Forbidden
- "404":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: API not found error
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- security:
- - apiKeyAuth: []
- appKeyAuth: []
- - AuthZ:
- - apm_api_catalog_read
- summary: Get an API
- tags: ["API Management"]
- "x-permission":
- operator: OR
- permissions:
- - apm_api_catalog_read
- x-unstable: |-
- **Note**: This endpoint is deprecated.
- put:
- deprecated: true
- description: |-
- Update information about a specific API. The given content will replace all API content of the given ID.
- The ID is returned by the create API, or can be found in the URL in the API catalog UI.
- operationId: UpdateOpenAPI
- parameters:
- - description: ID of the API to modify
- in: path
- name: id
- required: true
- schema:
- $ref: "#/components/schemas/ApiID"
- requestBody:
- content:
- multipart/form-data:
- examples:
- default:
- value:
- openapi_spec_file: openapi-spec.yaml
- schema:
- $ref: "#/components/schemas/OpenAPIFile"
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/UpdateOpenAPIResponse"
- description: API updated successfully
- "400":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Bad request
- "403":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Forbidden
- "404":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: API not found error
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- security:
- - apiKeyAuth: []
- appKeyAuth: []
- - AuthZ:
- - apm_api_catalog_write
- summary: Update an API
- tags: ["API Management"]
- "x-permission":
- operator: OR
- permissions:
- - apm_api_catalog_write
- x-unstable: |-
- **Note**: This endpoint is deprecated.
- /api/v2/apicatalog/openapi:
- post:
- deprecated: true
- description: |-
- Create a new API from the [OpenAPI](https://spec.openapis.org/oas/latest.html) specification given.
- See the [API Catalog documentation](https://docs.datadoghq.com/api_catalog/add_metadata/) for additional
- information about the possible metadata.
- It returns the created API ID.
- operationId: CreateOpenAPI
- requestBody:
- content:
- multipart/form-data:
- examples:
- default:
- value:
- openapi_spec_file: openapi-spec.yaml
- schema:
- $ref: "#/components/schemas/OpenAPIFile"
- required: true
- responses:
- "201":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CreateOpenAPIResponse"
- description: API created successfully
- "400":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Bad request
- "403":
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/JSONAPIErrorResponse"
- description: Forbidden
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- security:
- - apiKeyAuth: []
- appKeyAuth: []
- - AuthZ:
- - apm_api_catalog_write
- summary: Create a new API
- tags: ["API Management"]
- "x-permission":
- operator: OR
- permissions:
- - apm_api_catalog_write
- x-unstable: |-
- **Note**: This endpoint is deprecated.
/api/v2/apm/config/metrics:
get:
description: Get the list of configured span-based metrics with their definitions.
@@ -135233,9 +134830,6 @@ servers:
default: api
description: The subdomain where the API is deployed.
tags:
- - description: |-
- Configure your API endpoints through the Datadog API.
- name: API Management
- description: Observe, troubleshoot, and improve cloud-scale applications with all telemetry in context
name: APM
- description: |-
diff --git a/examples/v2/api-management/CreateOpenAPI.java b/examples/v2/api-management/CreateOpenAPI.java
deleted file mode 100644
index d0155357a80..00000000000
--- a/examples/v2/api-management/CreateOpenAPI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Create a new API returns "API created successfully" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.ApiManagementApi;
-import com.datadog.api.client.v2.api.ApiManagementApi.CreateOpenAPIOptionalParameters;
-import com.datadog.api.client.v2.model.CreateOpenAPIResponse;
-import java.io.File;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.createOpenAPI", true);
- ApiManagementApi apiInstance = new ApiManagementApi(defaultClient);
-
- try {
- CreateOpenAPIResponse result =
- apiInstance.createOpenAPI(
- new CreateOpenAPIOptionalParameters().openapiSpecFile(new File("openapi-spec.yaml")));
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ApiManagementApi#createOpenAPI");
- 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/api-management/DeleteOpenAPI.java b/examples/v2/api-management/DeleteOpenAPI.java
deleted file mode 100644
index 6e111dc260f..00000000000
--- a/examples/v2/api-management/DeleteOpenAPI.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Delete an API returns "API deleted successfully" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.ApiManagementApi;
-import java.util.UUID;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.deleteOpenAPI", true);
- ApiManagementApi apiInstance = new ApiManagementApi(defaultClient);
-
- // there is a valid "managed_api" in the system
- UUID MANAGED_API_DATA_ID = null;
- try {
- MANAGED_API_DATA_ID = UUID.fromString(System.getenv("MANAGED_API_DATA_ID"));
- } catch (IllegalArgumentException e) {
- System.err.println("Error parsing UUID: " + e.getMessage());
- }
-
- try {
- apiInstance.deleteOpenAPI(MANAGED_API_DATA_ID);
- } catch (ApiException e) {
- System.err.println("Exception when calling ApiManagementApi#deleteOpenAPI");
- 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/api-management/GetOpenAPI.java b/examples/v2/api-management/GetOpenAPI.java
deleted file mode 100644
index 099905d5087..00000000000
--- a/examples/v2/api-management/GetOpenAPI.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Get an API returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.ApiManagementApi;
-import java.io.File;
-import java.util.UUID;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.getOpenAPI", true);
- ApiManagementApi apiInstance = new ApiManagementApi(defaultClient);
-
- // there is a valid "managed_api" in the system
- UUID MANAGED_API_DATA_ID = null;
- try {
- MANAGED_API_DATA_ID = UUID.fromString(System.getenv("MANAGED_API_DATA_ID"));
- } catch (IllegalArgumentException e) {
- System.err.println("Error parsing UUID: " + e.getMessage());
- }
-
- try {
- File result = apiInstance.getOpenAPI(MANAGED_API_DATA_ID);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ApiManagementApi#getOpenAPI");
- 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/api-management/ListAPIs.java b/examples/v2/api-management/ListAPIs.java
deleted file mode 100644
index 089b04f5023..00000000000
--- a/examples/v2/api-management/ListAPIs.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// List APIs returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.ApiManagementApi;
-import com.datadog.api.client.v2.model.ListAPIsResponse;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.listAPIs", true);
- ApiManagementApi apiInstance = new ApiManagementApi(defaultClient);
-
- try {
- ListAPIsResponse result = apiInstance.listAPIs();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ApiManagementApi#listAPIs");
- 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/api-management/UpdateOpenAPI.java b/examples/v2/api-management/UpdateOpenAPI.java
deleted file mode 100644
index a017c6f7e23..00000000000
--- a/examples/v2/api-management/UpdateOpenAPI.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Update an API returns "API updated successfully" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.ApiManagementApi;
-import com.datadog.api.client.v2.api.ApiManagementApi.UpdateOpenAPIOptionalParameters;
-import com.datadog.api.client.v2.model.UpdateOpenAPIResponse;
-import java.io.File;
-import java.util.UUID;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.updateOpenAPI", true);
- ApiManagementApi apiInstance = new ApiManagementApi(defaultClient);
-
- // there is a valid "managed_api" in the system
- UUID MANAGED_API_DATA_ID = null;
- try {
- MANAGED_API_DATA_ID = UUID.fromString(System.getenv("MANAGED_API_DATA_ID"));
- } catch (IllegalArgumentException e) {
- System.err.println("Error parsing UUID: " + e.getMessage());
- }
-
- try {
- UpdateOpenAPIResponse result =
- apiInstance.updateOpenAPI(
- MANAGED_API_DATA_ID,
- new UpdateOpenAPIOptionalParameters().openapiSpecFile(new File("openapi-spec.yaml")));
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ApiManagementApi#updateOpenAPI");
- 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 e50cdd037c4..b77ab91c53d 100644
--- a/src/main/java/com/datadog/api/client/ApiClient.java
+++ b/src/main/java/com/datadog/api/client/ApiClient.java
@@ -803,11 +803,6 @@ public class ApiClient {
put("v2.updateLLMObsExperiment", false);
put("v2.updateLLMObsProject", false);
put("v2.anonymizeUsers", false);
- put("v2.createOpenAPI", false);
- put("v2.deleteOpenAPI", false);
- put("v2.getOpenAPI", false);
- put("v2.listAPIs", false);
- put("v2.updateOpenAPI", false);
put("v2.getInvestigation", false);
put("v2.listInvestigations", false);
put("v2.triggerInvestigation", false);
diff --git a/src/main/java/com/datadog/api/client/v2/api/ApiManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/ApiManagementApi.java
deleted file mode 100644
index 24a6f961a51..00000000000
--- a/src/main/java/com/datadog/api/client/v2/api/ApiManagementApi.java
+++ /dev/null
@@ -1,1030 +0,0 @@
-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.CreateOpenAPIResponse;
-import com.datadog.api.client.v2.model.ListAPIsResponse;
-import com.datadog.api.client.v2.model.UpdateOpenAPIResponse;
-import jakarta.ws.rs.client.Invocation;
-import jakarta.ws.rs.core.GenericType;
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-import java.util.concurrent.CompletableFuture;
-
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class ApiManagementApi {
- private ApiClient apiClient;
-
- public ApiManagementApi() {
- this(ApiClient.getDefaultApiClient());
- }
-
- public ApiManagementApi(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;
- }
-
- /** Manage optional parameters to createOpenAPI. */
- public static class CreateOpenAPIOptionalParameters {
- private File openapiSpecFile;
-
- /**
- * Set openapiSpecFile.
- *
- * @param openapiSpecFile Binary OpenAPI spec file (optional)
- * @return CreateOpenAPIOptionalParameters
- */
- public CreateOpenAPIOptionalParameters openapiSpecFile(File openapiSpecFile) {
- this.openapiSpecFile = openapiSpecFile;
- return this;
- }
- }
-
- /**
- * Create a new API.
- *
- *
See {@link #createOpenAPIWithHttpInfo}.
- *
- * @return CreateOpenAPIResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public CreateOpenAPIResponse createOpenAPI() throws ApiException {
- return createOpenAPIWithHttpInfo(new CreateOpenAPIOptionalParameters()).getData();
- }
-
- /**
- * Create a new API.
- *
- *
See {@link #createOpenAPIWithHttpInfoAsync}.
- *
- * @return CompletableFuture<CreateOpenAPIResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture createOpenAPIAsync() {
- return createOpenAPIWithHttpInfoAsync(new CreateOpenAPIOptionalParameters())
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Create a new API.
- *
- * See {@link #createOpenAPIWithHttpInfo}.
- *
- * @param parameters Optional parameters for the request.
- * @return CreateOpenAPIResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public CreateOpenAPIResponse createOpenAPI(CreateOpenAPIOptionalParameters parameters)
- throws ApiException {
- return createOpenAPIWithHttpInfo(parameters).getData();
- }
-
- /**
- * Create a new API.
- *
- *
See {@link #createOpenAPIWithHttpInfoAsync}.
- *
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<CreateOpenAPIResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture createOpenAPIAsync(
- CreateOpenAPIOptionalParameters parameters) {
- return createOpenAPIWithHttpInfoAsync(parameters)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Create a new API from the OpenAPI
- * specification given. See the API
- * Catalog documentation for additional information about the possible metadata. It returns
- * the created API ID.
- *
- * @param parameters Optional parameters for the request.
- * @return ApiResponse<CreateOpenAPIResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 201 | API created successfully | - |
- * | 400 | Bad request | - |
- * | 403 | Forbidden | - |
- * | 429 | Too many requests | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse createOpenAPIWithHttpInfo(
- CreateOpenAPIOptionalParameters parameters) throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "createOpenAPI";
- 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;
- File openapiSpecFile = parameters.openapiSpecFile;
- // create path and map variables
- String localVarPath = "/api/v2/apicatalog/openapi";
-
- Map localVarHeaderParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (openapiSpecFile != null) {
- localVarFormParams.put("openapi_spec_file", openapiSpecFile);
- }
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.createOpenAPI",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- return apiClient.invokeAPI(
- "POST",
- builder,
- localVarHeaderParams,
- new String[] {"multipart/form-data"},
- localVarPostBody,
- localVarFormParams,
- false,
- new GenericType() {});
- }
-
- /**
- * Create a new API.
- *
- * See {@link #createOpenAPIWithHttpInfo}.
- *
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<CreateOpenAPIResponse>>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture> createOpenAPIWithHttpInfoAsync(
- CreateOpenAPIOptionalParameters parameters) {
- // Check if unstable operation is enabled
- String operationId = "createOpenAPI";
- 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;
- File openapiSpecFile = parameters.openapiSpecFile;
- // create path and map variables
- String localVarPath = "/api/v2/apicatalog/openapi";
-
- Map localVarHeaderParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (openapiSpecFile != null) {
- localVarFormParams.put("openapi_spec_file", openapiSpecFile);
- }
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.createOpenAPI",
- 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[] {"multipart/form-data"},
- localVarPostBody,
- localVarFormParams,
- false,
- new GenericType() {});
- }
-
- /**
- * Delete an API.
- *
- * See {@link #deleteOpenAPIWithHttpInfo}.
- *
- * @param id ID of the API to delete (required)
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public void deleteOpenAPI(UUID id) throws ApiException {
- deleteOpenAPIWithHttpInfo(id);
- }
-
- /**
- * Delete an API.
- *
- *
See {@link #deleteOpenAPIWithHttpInfoAsync}.
- *
- * @param id ID of the API to delete (required)
- * @return CompletableFuture
- * @deprecated
- */
- @Deprecated
- public CompletableFuture deleteOpenAPIAsync(UUID id) {
- return deleteOpenAPIWithHttpInfoAsync(id)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Delete a specific API by ID.
- *
- * @param id ID of the API to delete (required)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 204 | API deleted successfully | - |
- * | 400 | Bad request | - |
- * | 403 | Forbidden | - |
- * | 404 | API not found error | - |
- * | 429 | Too many requests | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse deleteOpenAPIWithHttpInfo(UUID id) throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "deleteOpenAPI";
- 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 'id' is set
- if (id == null) {
- throw new ApiException(400, "Missing the required parameter 'id' when calling deleteOpenAPI");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/apicatalog/api/{id}"
- .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.deleteOpenAPI",
- 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 an API.
- *
- * See {@link #deleteOpenAPIWithHttpInfo}.
- *
- * @param id ID of the API to delete (required)
- * @return CompletableFuture<ApiResponse<Void>>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture> deleteOpenAPIWithHttpInfoAsync(UUID id) {
- // Check if unstable operation is enabled
- String operationId = "deleteOpenAPI";
- 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 'id' is set
- if (id == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(400, "Missing the required parameter 'id' when calling deleteOpenAPI"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/apicatalog/api/{id}"
- .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.deleteOpenAPI",
- 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 an API.
- *
- * See {@link #getOpenAPIWithHttpInfo}.
- *
- * @param id ID of the API to retrieve (required)
- * @return File
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public File getOpenAPI(UUID id) throws ApiException {
- return getOpenAPIWithHttpInfo(id).getData();
- }
-
- /**
- * Get an API.
- *
- *
See {@link #getOpenAPIWithHttpInfoAsync}.
- *
- * @param id ID of the API to retrieve (required)
- * @return CompletableFuture<File>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture getOpenAPIAsync(UUID id) {
- return getOpenAPIWithHttpInfoAsync(id)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Retrieve information about a specific API in OpenAPI format file.
- *
- * @param id ID of the API to retrieve (required)
- * @return ApiResponse<File>
- * @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 | API not found error | - |
- * | 429 | Too many requests | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse getOpenAPIWithHttpInfo(UUID id) throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "getOpenAPI";
- 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 'id' is set
- if (id == null) {
- throw new ApiException(400, "Missing the required parameter 'id' when calling getOpenAPI");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/apicatalog/api/{id}/openapi"
- .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.getOpenAPI",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"multipart/form-data", "application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- return apiClient.invokeAPI(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Get an API.
- *
- * See {@link #getOpenAPIWithHttpInfo}.
- *
- * @param id ID of the API to retrieve (required)
- * @return CompletableFuture<ApiResponse<File>>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture> getOpenAPIWithHttpInfoAsync(UUID id) {
- // Check if unstable operation is enabled
- String operationId = "getOpenAPI";
- 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 'id' is set
- if (id == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(400, "Missing the required parameter 'id' when calling getOpenAPI"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/apicatalog/api/{id}/openapi"
- .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.getOpenAPI",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"multipart/form-data", "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() {});
- }
-
- /** Manage optional parameters to listAPIs. */
- public static class ListAPIsOptionalParameters {
- private String query;
- private Long pageLimit;
- private Long pageOffset;
-
- /**
- * Set query.
- *
- * @param query Filter APIs by name (optional)
- * @return ListAPIsOptionalParameters
- */
- public ListAPIsOptionalParameters query(String query) {
- this.query = query;
- return this;
- }
-
- /**
- * Set pageLimit.
- *
- * @param pageLimit Number of items per page. (optional, default to 20)
- * @return ListAPIsOptionalParameters
- */
- public ListAPIsOptionalParameters pageLimit(Long pageLimit) {
- this.pageLimit = pageLimit;
- return this;
- }
-
- /**
- * Set pageOffset.
- *
- * @param pageOffset Offset for pagination. (optional, default to 0)
- * @return ListAPIsOptionalParameters
- */
- public ListAPIsOptionalParameters pageOffset(Long pageOffset) {
- this.pageOffset = pageOffset;
- return this;
- }
- }
-
- /**
- * List APIs.
- *
- * See {@link #listAPIsWithHttpInfo}.
- *
- * @return ListAPIsResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public ListAPIsResponse listAPIs() throws ApiException {
- return listAPIsWithHttpInfo(new ListAPIsOptionalParameters()).getData();
- }
-
- /**
- * List APIs.
- *
- *
See {@link #listAPIsWithHttpInfoAsync}.
- *
- * @return CompletableFuture<ListAPIsResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture listAPIsAsync() {
- return listAPIsWithHttpInfoAsync(new ListAPIsOptionalParameters())
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * List APIs.
- *
- * See {@link #listAPIsWithHttpInfo}.
- *
- * @param parameters Optional parameters for the request.
- * @return ListAPIsResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public ListAPIsResponse listAPIs(ListAPIsOptionalParameters parameters) throws ApiException {
- return listAPIsWithHttpInfo(parameters).getData();
- }
-
- /**
- * List APIs.
- *
- *
See {@link #listAPIsWithHttpInfoAsync}.
- *
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<ListAPIsResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture listAPIsAsync(ListAPIsOptionalParameters parameters) {
- return listAPIsWithHttpInfoAsync(parameters)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * List APIs and their IDs.
- *
- * @param parameters Optional parameters for the request.
- * @return ApiResponse<ListAPIsResponse>
- * @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 | - |
- * | 429 | Too many requests | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse listAPIsWithHttpInfo(ListAPIsOptionalParameters parameters)
- throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "listAPIs";
- 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;
- String query = parameters.query;
- Long pageLimit = parameters.pageLimit;
- Long pageOffset = parameters.pageOffset;
- // create path and map variables
- String localVarPath = "/api/v2/apicatalog/api";
-
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
-
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "query", query));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[limit]", pageLimit));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[offset]", pageOffset));
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.listAPIs",
- localVarPath,
- localVarQueryParams,
- 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 APIs.
- *
- * See {@link #listAPIsWithHttpInfo}.
- *
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<ListAPIsResponse>>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture> listAPIsWithHttpInfoAsync(
- ListAPIsOptionalParameters parameters) {
- // Check if unstable operation is enabled
- String operationId = "listAPIs";
- 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;
- String query = parameters.query;
- Long pageLimit = parameters.pageLimit;
- Long pageOffset = parameters.pageOffset;
- // create path and map variables
- String localVarPath = "/api/v2/apicatalog/api";
-
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
-
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "query", query));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[limit]", pageLimit));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[offset]", pageOffset));
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.listAPIs",
- localVarPath,
- localVarQueryParams,
- 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() {});
- }
-
- /** Manage optional parameters to updateOpenAPI. */
- public static class UpdateOpenAPIOptionalParameters {
- private File openapiSpecFile;
-
- /**
- * Set openapiSpecFile.
- *
- * @param openapiSpecFile Binary OpenAPI spec file (optional)
- * @return UpdateOpenAPIOptionalParameters
- */
- public UpdateOpenAPIOptionalParameters openapiSpecFile(File openapiSpecFile) {
- this.openapiSpecFile = openapiSpecFile;
- return this;
- }
- }
-
- /**
- * Update an API.
- *
- * See {@link #updateOpenAPIWithHttpInfo}.
- *
- * @param id ID of the API to modify (required)
- * @return UpdateOpenAPIResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public UpdateOpenAPIResponse updateOpenAPI(UUID id) throws ApiException {
- return updateOpenAPIWithHttpInfo(id, new UpdateOpenAPIOptionalParameters()).getData();
- }
-
- /**
- * Update an API.
- *
- *
See {@link #updateOpenAPIWithHttpInfoAsync}.
- *
- * @param id ID of the API to modify (required)
- * @return CompletableFuture<UpdateOpenAPIResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture updateOpenAPIAsync(UUID id) {
- return updateOpenAPIWithHttpInfoAsync(id, new UpdateOpenAPIOptionalParameters())
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Update an API.
- *
- * See {@link #updateOpenAPIWithHttpInfo}.
- *
- * @param id ID of the API to modify (required)
- * @param parameters Optional parameters for the request.
- * @return UpdateOpenAPIResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public UpdateOpenAPIResponse updateOpenAPI(UUID id, UpdateOpenAPIOptionalParameters parameters)
- throws ApiException {
- return updateOpenAPIWithHttpInfo(id, parameters).getData();
- }
-
- /**
- * Update an API.
- *
- *
See {@link #updateOpenAPIWithHttpInfoAsync}.
- *
- * @param id ID of the API to modify (required)
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<UpdateOpenAPIResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture updateOpenAPIAsync(
- UUID id, UpdateOpenAPIOptionalParameters parameters) {
- return updateOpenAPIWithHttpInfoAsync(id, parameters)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Update information about a specific API. The given content will replace all API content of the
- * given ID. The ID is returned by the create API, or can be found in the URL in the API catalog
- * UI.
- *
- * @param id ID of the API to modify (required)
- * @param parameters Optional parameters for the request.
- * @return ApiResponse<UpdateOpenAPIResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | API updated successfully | - |
- * | 400 | Bad request | - |
- * | 403 | Forbidden | - |
- * | 404 | API not found error | - |
- * | 429 | Too many requests | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse updateOpenAPIWithHttpInfo(
- UUID id, UpdateOpenAPIOptionalParameters parameters) throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "updateOpenAPI";
- 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 'id' is set
- if (id == null) {
- throw new ApiException(400, "Missing the required parameter 'id' when calling updateOpenAPI");
- }
- File openapiSpecFile = parameters.openapiSpecFile;
- // create path and map variables
- String localVarPath =
- "/api/v2/apicatalog/api/{id}/openapi"
- .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
-
- Map localVarHeaderParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (openapiSpecFile != null) {
- localVarFormParams.put("openapi_spec_file", openapiSpecFile);
- }
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.updateOpenAPI",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- return apiClient.invokeAPI(
- "PUT",
- builder,
- localVarHeaderParams,
- new String[] {"multipart/form-data"},
- localVarPostBody,
- localVarFormParams,
- false,
- new GenericType() {});
- }
-
- /**
- * Update an API.
- *
- * See {@link #updateOpenAPIWithHttpInfo}.
- *
- * @param id ID of the API to modify (required)
- * @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<UpdateOpenAPIResponse>>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture> updateOpenAPIWithHttpInfoAsync(
- UUID id, UpdateOpenAPIOptionalParameters parameters) {
- // Check if unstable operation is enabled
- String operationId = "updateOpenAPI";
- 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 'id' is set
- if (id == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(400, "Missing the required parameter 'id' when calling updateOpenAPI"));
- return result;
- }
- File openapiSpecFile = parameters.openapiSpecFile;
- // create path and map variables
- String localVarPath =
- "/api/v2/apicatalog/api/{id}/openapi"
- .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
-
- Map localVarHeaderParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (openapiSpecFile != null) {
- localVarFormParams.put("openapi_spec_file", openapiSpecFile);
- }
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.ApiManagementApi.updateOpenAPI",
- 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(
- "PUT",
- builder,
- localVarHeaderParams,
- new String[] {"multipart/form-data"},
- localVarPostBody,
- localVarFormParams,
- false,
- new GenericType() {});
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateOpenAPIResponse.java b/src/main/java/com/datadog/api/client/v2/model/CreateOpenAPIResponse.java
deleted file mode 100644
index 5bf666af6a2..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/CreateOpenAPIResponse.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * 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;
-
-/** Response for CreateOpenAPI operation. */
-@JsonPropertyOrder({CreateOpenAPIResponse.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class CreateOpenAPIResponse {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private CreateOpenAPIResponseData data;
-
- public CreateOpenAPIResponse data(CreateOpenAPIResponseData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * Data envelope for CreateOpenAPIResponse.
- *
- * @return data
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public CreateOpenAPIResponseData getData() {
- return data;
- }
-
- public void setData(CreateOpenAPIResponseData data) {
- this.data = data;
- }
-
- /**
- * 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 CreateOpenAPIResponse
- */
- @JsonAnySetter
- public CreateOpenAPIResponse 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 CreateOpenAPIResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CreateOpenAPIResponse createOpenApiResponse = (CreateOpenAPIResponse) o;
- return Objects.equals(this.data, createOpenApiResponse.data)
- && Objects.equals(this.additionalProperties, createOpenApiResponse.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class CreateOpenAPIResponse {\n");
- sb.append(" data: ").append(toIndentedString(data)).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/CreateOpenAPIResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CreateOpenAPIResponseAttributes.java
deleted file mode 100644
index 93023fed419..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/CreateOpenAPIResponseAttributes.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * 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.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** Attributes for CreateOpenAPI. */
-@JsonPropertyOrder({CreateOpenAPIResponseAttributes.JSON_PROPERTY_FAILED_ENDPOINTS})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class CreateOpenAPIResponseAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_FAILED_ENDPOINTS = "failed_endpoints";
- private List failedEndpoints = null;
-
- public CreateOpenAPIResponseAttributes failedEndpoints(List failedEndpoints) {
- this.failedEndpoints = failedEndpoints;
- for (OpenAPIEndpoint item : failedEndpoints) {
- this.unparsed |= item.unparsed;
- }
- return this;
- }
-
- public CreateOpenAPIResponseAttributes addFailedEndpointsItem(
- OpenAPIEndpoint failedEndpointsItem) {
- if (this.failedEndpoints == null) {
- this.failedEndpoints = new ArrayList<>();
- }
- this.failedEndpoints.add(failedEndpointsItem);
- this.unparsed |= failedEndpointsItem.unparsed;
- return this;
- }
-
- /**
- * List of endpoints which couldn't be parsed.
- *
- * @return failedEndpoints
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_FAILED_ENDPOINTS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getFailedEndpoints() {
- return failedEndpoints;
- }
-
- public void setFailedEndpoints(List failedEndpoints) {
- this.failedEndpoints = failedEndpoints;
- }
-
- /**
- * 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 CreateOpenAPIResponseAttributes
- */
- @JsonAnySetter
- public CreateOpenAPIResponseAttributes 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 CreateOpenAPIResponseAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CreateOpenAPIResponseAttributes createOpenApiResponseAttributes =
- (CreateOpenAPIResponseAttributes) o;
- return Objects.equals(this.failedEndpoints, createOpenApiResponseAttributes.failedEndpoints)
- && Objects.equals(
- this.additionalProperties, createOpenApiResponseAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(failedEndpoints, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class CreateOpenAPIResponseAttributes {\n");
- sb.append(" failedEndpoints: ").append(toIndentedString(failedEndpoints)).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/CreateOpenAPIResponseData.java b/src/main/java/com/datadog/api/client/v2/model/CreateOpenAPIResponseData.java
deleted file mode 100644
index fe0bdb7776e..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/CreateOpenAPIResponseData.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * 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;
-import java.util.UUID;
-
-/** Data envelope for CreateOpenAPIResponse. */
-@JsonPropertyOrder({
- CreateOpenAPIResponseData.JSON_PROPERTY_ATTRIBUTES,
- CreateOpenAPIResponseData.JSON_PROPERTY_ID
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class CreateOpenAPIResponseData {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private CreateOpenAPIResponseAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private UUID id;
-
- public CreateOpenAPIResponseData attributes(CreateOpenAPIResponseAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * Attributes for CreateOpenAPI.
- *
- * @return attributes
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public CreateOpenAPIResponseAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(CreateOpenAPIResponseAttributes attributes) {
- this.attributes = attributes;
- }
-
- public CreateOpenAPIResponseData id(UUID id) {
- this.id = id;
- return this;
- }
-
- /**
- * API identifier.
- *
- * @return id
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public UUID getId() {
- return id;
- }
-
- public void setId(UUID id) {
- this.id = id;
- }
-
- /**
- * 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 CreateOpenAPIResponseData
- */
- @JsonAnySetter
- public CreateOpenAPIResponseData 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 CreateOpenAPIResponseData object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CreateOpenAPIResponseData createOpenApiResponseData = (CreateOpenAPIResponseData) o;
- return Objects.equals(this.attributes, createOpenApiResponseData.attributes)
- && Objects.equals(this.id, createOpenApiResponseData.id)
- && Objects.equals(
- this.additionalProperties, createOpenApiResponseData.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class CreateOpenAPIResponseData {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).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/ListAPIsResponse.java b/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponse.java
deleted file mode 100644
index b7fbb990286..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponse.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * 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.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** Response for ListAPIs. */
-@JsonPropertyOrder({ListAPIsResponse.JSON_PROPERTY_DATA, ListAPIsResponse.JSON_PROPERTY_META})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class ListAPIsResponse {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private List data = null;
-
- public static final String JSON_PROPERTY_META = "meta";
- private ListAPIsResponseMeta meta;
-
- public ListAPIsResponse data(List data) {
- this.data = data;
- for (ListAPIsResponseData item : data) {
- this.unparsed |= item.unparsed;
- }
- return this;
- }
-
- public ListAPIsResponse addDataItem(ListAPIsResponseData dataItem) {
- if (this.data == null) {
- this.data = new ArrayList<>();
- }
- this.data.add(dataItem);
- this.unparsed |= dataItem.unparsed;
- return this;
- }
-
- /**
- * List of API items.
- *
- * @return data
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getData() {
- return data;
- }
-
- public void setData(List data) {
- this.data = data;
- }
-
- public ListAPIsResponse meta(ListAPIsResponseMeta meta) {
- this.meta = meta;
- this.unparsed |= meta.unparsed;
- return this;
- }
-
- /**
- * Metadata for ListAPIsResponse.
- *
- * @return meta
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_META)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ListAPIsResponseMeta getMeta() {
- return meta;
- }
-
- public void setMeta(ListAPIsResponseMeta meta) {
- this.meta = meta;
- }
-
- /**
- * 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 ListAPIsResponse
- */
- @JsonAnySetter
- public ListAPIsResponse 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 ListAPIsResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ListAPIsResponse listApIsResponse = (ListAPIsResponse) o;
- return Objects.equals(this.data, listApIsResponse.data)
- && Objects.equals(this.meta, listApIsResponse.meta)
- && Objects.equals(this.additionalProperties, listApIsResponse.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, meta, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ListAPIsResponse {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" meta: ").append(toIndentedString(meta)).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/ListAPIsResponseData.java b/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseData.java
deleted file mode 100644
index e2fae7eef50..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseData.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * 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;
-import java.util.UUID;
-
-/** Data envelope for ListAPIsResponse. */
-@JsonPropertyOrder({
- ListAPIsResponseData.JSON_PROPERTY_ATTRIBUTES,
- ListAPIsResponseData.JSON_PROPERTY_ID
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class ListAPIsResponseData {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private ListAPIsResponseDataAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private UUID id;
-
- public ListAPIsResponseData attributes(ListAPIsResponseDataAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * Attributes for ListAPIsResponseData.
- *
- * @return attributes
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ListAPIsResponseDataAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(ListAPIsResponseDataAttributes attributes) {
- this.attributes = attributes;
- }
-
- public ListAPIsResponseData id(UUID id) {
- this.id = id;
- return this;
- }
-
- /**
- * API identifier.
- *
- * @return id
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public UUID getId() {
- return id;
- }
-
- public void setId(UUID id) {
- this.id = id;
- }
-
- /**
- * 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 ListAPIsResponseData
- */
- @JsonAnySetter
- public ListAPIsResponseData 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 ListAPIsResponseData object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ListAPIsResponseData listApIsResponseData = (ListAPIsResponseData) o;
- return Objects.equals(this.attributes, listApIsResponseData.attributes)
- && Objects.equals(this.id, listApIsResponseData.id)
- && Objects.equals(this.additionalProperties, listApIsResponseData.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ListAPIsResponseData {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).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/ListAPIsResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseDataAttributes.java
deleted file mode 100644
index 0469586c6ce..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseDataAttributes.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * 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;
-
-/** Attributes for ListAPIsResponseData. */
-@JsonPropertyOrder({ListAPIsResponseDataAttributes.JSON_PROPERTY_NAME})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class ListAPIsResponseDataAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_NAME = "name";
- private String name;
-
- public ListAPIsResponseDataAttributes name(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * API name.
- *
- * @return name
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * 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 ListAPIsResponseDataAttributes
- */
- @JsonAnySetter
- public ListAPIsResponseDataAttributes 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 ListAPIsResponseDataAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ListAPIsResponseDataAttributes listApIsResponseDataAttributes =
- (ListAPIsResponseDataAttributes) o;
- return Objects.equals(this.name, listApIsResponseDataAttributes.name)
- && Objects.equals(
- this.additionalProperties, listApIsResponseDataAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ListAPIsResponseDataAttributes {\n");
- sb.append(" name: ").append(toIndentedString(name)).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/ListAPIsResponseMeta.java b/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseMeta.java
deleted file mode 100644
index 7af4cf749ab..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseMeta.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * 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;
-
-/** Metadata for ListAPIsResponse. */
-@JsonPropertyOrder({ListAPIsResponseMeta.JSON_PROPERTY_PAGINATION})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class ListAPIsResponseMeta {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_PAGINATION = "pagination";
- private ListAPIsResponseMetaPagination pagination;
-
- public ListAPIsResponseMeta pagination(ListAPIsResponseMetaPagination pagination) {
- this.pagination = pagination;
- this.unparsed |= pagination.unparsed;
- return this;
- }
-
- /**
- * Pagination metadata information for ListAPIsResponse.
- *
- * @return pagination
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_PAGINATION)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ListAPIsResponseMetaPagination getPagination() {
- return pagination;
- }
-
- public void setPagination(ListAPIsResponseMetaPagination pagination) {
- this.pagination = pagination;
- }
-
- /**
- * 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 ListAPIsResponseMeta
- */
- @JsonAnySetter
- public ListAPIsResponseMeta 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 ListAPIsResponseMeta object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ListAPIsResponseMeta listApIsResponseMeta = (ListAPIsResponseMeta) o;
- return Objects.equals(this.pagination, listApIsResponseMeta.pagination)
- && Objects.equals(this.additionalProperties, listApIsResponseMeta.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(pagination, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ListAPIsResponseMeta {\n");
- sb.append(" pagination: ").append(toIndentedString(pagination)).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/ListAPIsResponseMetaPagination.java b/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseMetaPagination.java
deleted file mode 100644
index cc403a84f7f..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/ListAPIsResponseMetaPagination.java
+++ /dev/null
@@ -1,193 +0,0 @@
-/*
- * 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;
-
-/** Pagination metadata information for ListAPIsResponse. */
-@JsonPropertyOrder({
- ListAPIsResponseMetaPagination.JSON_PROPERTY_LIMIT,
- ListAPIsResponseMetaPagination.JSON_PROPERTY_OFFSET,
- ListAPIsResponseMetaPagination.JSON_PROPERTY_TOTAL_COUNT
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class ListAPIsResponseMetaPagination {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_LIMIT = "limit";
- private Long limit;
-
- public static final String JSON_PROPERTY_OFFSET = "offset";
- private Long offset;
-
- public static final String JSON_PROPERTY_TOTAL_COUNT = "total_count";
- private Long totalCount;
-
- public ListAPIsResponseMetaPagination limit(Long limit) {
- this.limit = limit;
- return this;
- }
-
- /**
- * Number of items in the current page.
- *
- * @return limit
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_LIMIT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Long getLimit() {
- return limit;
- }
-
- public void setLimit(Long limit) {
- this.limit = limit;
- }
-
- public ListAPIsResponseMetaPagination offset(Long offset) {
- this.offset = offset;
- return this;
- }
-
- /**
- * Offset for pagination.
- *
- * @return offset
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_OFFSET)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Long getOffset() {
- return offset;
- }
-
- public void setOffset(Long offset) {
- this.offset = offset;
- }
-
- public ListAPIsResponseMetaPagination totalCount(Long totalCount) {
- this.totalCount = totalCount;
- return this;
- }
-
- /**
- * Total number of items.
- *
- * @return totalCount
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TOTAL_COUNT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Long getTotalCount() {
- return totalCount;
- }
-
- public void setTotalCount(Long totalCount) {
- this.totalCount = totalCount;
- }
-
- /**
- * 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 ListAPIsResponseMetaPagination
- */
- @JsonAnySetter
- public ListAPIsResponseMetaPagination 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 ListAPIsResponseMetaPagination object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ListAPIsResponseMetaPagination listApIsResponseMetaPagination =
- (ListAPIsResponseMetaPagination) o;
- return Objects.equals(this.limit, listApIsResponseMetaPagination.limit)
- && Objects.equals(this.offset, listApIsResponseMetaPagination.offset)
- && Objects.equals(this.totalCount, listApIsResponseMetaPagination.totalCount)
- && Objects.equals(
- this.additionalProperties, listApIsResponseMetaPagination.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(limit, offset, totalCount, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ListAPIsResponseMetaPagination {\n");
- sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
- sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
- sb.append(" totalCount: ").append(toIndentedString(totalCount)).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/OpenAPIEndpoint.java b/src/main/java/com/datadog/api/client/v2/model/OpenAPIEndpoint.java
deleted file mode 100644
index c80af4dc888..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/OpenAPIEndpoint.java
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
- * 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;
-
-/** Endpoint info extracted from an OpenAPI specification. */
-@JsonPropertyOrder({OpenAPIEndpoint.JSON_PROPERTY_METHOD, OpenAPIEndpoint.JSON_PROPERTY_PATH})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class OpenAPIEndpoint {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_METHOD = "method";
- private String method;
-
- public static final String JSON_PROPERTY_PATH = "path";
- private String path;
-
- public OpenAPIEndpoint method(String method) {
- this.method = method;
- return this;
- }
-
- /**
- * The endpoint method.
- *
- * @return method
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_METHOD)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getMethod() {
- return method;
- }
-
- public void setMethod(String method) {
- this.method = method;
- }
-
- public OpenAPIEndpoint path(String path) {
- this.path = path;
- return this;
- }
-
- /**
- * The endpoint path.
- *
- * @return path
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_PATH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getPath() {
- return path;
- }
-
- public void setPath(String path) {
- this.path = path;
- }
-
- /**
- * 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 OpenAPIEndpoint
- */
- @JsonAnySetter
- public OpenAPIEndpoint 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 OpenAPIEndpoint object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- OpenAPIEndpoint openApiEndpoint = (OpenAPIEndpoint) o;
- return Objects.equals(this.method, openApiEndpoint.method)
- && Objects.equals(this.path, openApiEndpoint.path)
- && Objects.equals(this.additionalProperties, openApiEndpoint.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(method, path, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class OpenAPIEndpoint {\n");
- sb.append(" method: ").append(toIndentedString(method)).append("\n");
- sb.append(" path: ").append(toIndentedString(path)).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/OpenAPIFile.java b/src/main/java/com/datadog/api/client/v2/model/OpenAPIFile.java
deleted file mode 100644
index ce51485c726..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/OpenAPIFile.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * 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.io.File;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** Object for API data in an OpenAPI format as a file. */
-@JsonPropertyOrder({OpenAPIFile.JSON_PROPERTY_OPENAPI_SPEC_FILE})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class OpenAPIFile {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_OPENAPI_SPEC_FILE = "openapi_spec_file";
- private File openapiSpecFile;
-
- public OpenAPIFile openapiSpecFile(File openapiSpecFile) {
- this.openapiSpecFile = openapiSpecFile;
- return this;
- }
-
- /**
- * Binary OpenAPI spec file
- *
- * @return openapiSpecFile
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_OPENAPI_SPEC_FILE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public File getOpenapiSpecFile() {
- return openapiSpecFile;
- }
-
- public void setOpenapiSpecFile(File openapiSpecFile) {
- this.openapiSpecFile = openapiSpecFile;
- }
-
- /**
- * 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 OpenAPIFile
- */
- @JsonAnySetter
- public OpenAPIFile 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 OpenAPIFile object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- OpenAPIFile openApiFile = (OpenAPIFile) o;
- return Objects.equals(this.openapiSpecFile, openApiFile.openapiSpecFile)
- && Objects.equals(this.additionalProperties, openApiFile.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(openapiSpecFile, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class OpenAPIFile {\n");
- sb.append(" openapiSpecFile: ").append(toIndentedString(openapiSpecFile)).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/UpdateOpenAPIResponse.java b/src/main/java/com/datadog/api/client/v2/model/UpdateOpenAPIResponse.java
deleted file mode 100644
index 7153806c106..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/UpdateOpenAPIResponse.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * 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;
-
-/** Response for UpdateOpenAPI. */
-@JsonPropertyOrder({UpdateOpenAPIResponse.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class UpdateOpenAPIResponse {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private UpdateOpenAPIResponseData data;
-
- public UpdateOpenAPIResponse data(UpdateOpenAPIResponseData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * Data envelope for UpdateOpenAPIResponse.
- *
- * @return data
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public UpdateOpenAPIResponseData getData() {
- return data;
- }
-
- public void setData(UpdateOpenAPIResponseData data) {
- this.data = data;
- }
-
- /**
- * 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 UpdateOpenAPIResponse
- */
- @JsonAnySetter
- public UpdateOpenAPIResponse 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 UpdateOpenAPIResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- UpdateOpenAPIResponse updateOpenApiResponse = (UpdateOpenAPIResponse) o;
- return Objects.equals(this.data, updateOpenApiResponse.data)
- && Objects.equals(this.additionalProperties, updateOpenApiResponse.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class UpdateOpenAPIResponse {\n");
- sb.append(" data: ").append(toIndentedString(data)).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/UpdateOpenAPIResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/UpdateOpenAPIResponseAttributes.java
deleted file mode 100644
index 75d343f6423..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/UpdateOpenAPIResponseAttributes.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * 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.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** Attributes for UpdateOpenAPI. */
-@JsonPropertyOrder({UpdateOpenAPIResponseAttributes.JSON_PROPERTY_FAILED_ENDPOINTS})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class UpdateOpenAPIResponseAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_FAILED_ENDPOINTS = "failed_endpoints";
- private List failedEndpoints = null;
-
- public UpdateOpenAPIResponseAttributes failedEndpoints(List failedEndpoints) {
- this.failedEndpoints = failedEndpoints;
- for (OpenAPIEndpoint item : failedEndpoints) {
- this.unparsed |= item.unparsed;
- }
- return this;
- }
-
- public UpdateOpenAPIResponseAttributes addFailedEndpointsItem(
- OpenAPIEndpoint failedEndpointsItem) {
- if (this.failedEndpoints == null) {
- this.failedEndpoints = new ArrayList<>();
- }
- this.failedEndpoints.add(failedEndpointsItem);
- this.unparsed |= failedEndpointsItem.unparsed;
- return this;
- }
-
- /**
- * List of endpoints which couldn't be parsed.
- *
- * @return failedEndpoints
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_FAILED_ENDPOINTS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getFailedEndpoints() {
- return failedEndpoints;
- }
-
- public void setFailedEndpoints(List failedEndpoints) {
- this.failedEndpoints = failedEndpoints;
- }
-
- /**
- * 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 UpdateOpenAPIResponseAttributes
- */
- @JsonAnySetter
- public UpdateOpenAPIResponseAttributes 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 UpdateOpenAPIResponseAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- UpdateOpenAPIResponseAttributes updateOpenApiResponseAttributes =
- (UpdateOpenAPIResponseAttributes) o;
- return Objects.equals(this.failedEndpoints, updateOpenApiResponseAttributes.failedEndpoints)
- && Objects.equals(
- this.additionalProperties, updateOpenApiResponseAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(failedEndpoints, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class UpdateOpenAPIResponseAttributes {\n");
- sb.append(" failedEndpoints: ").append(toIndentedString(failedEndpoints)).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/UpdateOpenAPIResponseData.java b/src/main/java/com/datadog/api/client/v2/model/UpdateOpenAPIResponseData.java
deleted file mode 100644
index 07c28717497..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/UpdateOpenAPIResponseData.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * 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;
-import java.util.UUID;
-
-/** Data envelope for UpdateOpenAPIResponse. */
-@JsonPropertyOrder({
- UpdateOpenAPIResponseData.JSON_PROPERTY_ATTRIBUTES,
- UpdateOpenAPIResponseData.JSON_PROPERTY_ID
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class UpdateOpenAPIResponseData {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private UpdateOpenAPIResponseAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private UUID id;
-
- public UpdateOpenAPIResponseData attributes(UpdateOpenAPIResponseAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * Attributes for UpdateOpenAPI.
- *
- * @return attributes
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public UpdateOpenAPIResponseAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(UpdateOpenAPIResponseAttributes attributes) {
- this.attributes = attributes;
- }
-
- public UpdateOpenAPIResponseData id(UUID id) {
- this.id = id;
- return this;
- }
-
- /**
- * API identifier.
- *
- * @return id
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public UUID getId() {
- return id;
- }
-
- public void setId(UUID id) {
- this.id = id;
- }
-
- /**
- * 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 UpdateOpenAPIResponseData
- */
- @JsonAnySetter
- public UpdateOpenAPIResponseData 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 UpdateOpenAPIResponseData object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- UpdateOpenAPIResponseData updateOpenApiResponseData = (UpdateOpenAPIResponseData) o;
- return Objects.equals(this.attributes, updateOpenApiResponseData.attributes)
- && Objects.equals(this.id, updateOpenApiResponseData.id)
- && Objects.equals(
- this.additionalProperties, updateOpenApiResponseData.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class UpdateOpenAPIResponseData {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).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/test/resources/com/datadog/api/client/v2/api/api_management.feature b/src/test/resources/com/datadog/api/client/v2/api/api_management.feature
deleted file mode 100644
index aefe9f319cc..00000000000
--- a/src/test/resources/com/datadog/api/client/v2/api/api_management.feature
+++ /dev/null
@@ -1,115 +0,0 @@
-@endpoint(api-management) @endpoint(api-management-v2)
-Feature: API Management
- Configure your API endpoints through the Datadog API.
-
- Background:
- Given a valid "apiKeyAuth" key in the system
- And a valid "appKeyAuth" key in the system
- And an instance of "APIManagement" API
-
- @integration-only @skip-terraform-config @skip-validation @team:DataDog/apm-aoe
- Scenario: Create a new API returns "API created successfully" response
- Given operation "CreateOpenAPI" enabled
- And new "CreateOpenAPI" request
- And request contains "openapi_spec_file" parameter with value "openapi-spec.yaml"
- When the request is sent
- Then the response status is 201 API created successfully
- And the response "data.attributes.failed_endpoints" has length 0
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: Create a new API returns "Bad request" response
- Given operation "CreateOpenAPI" enabled
- And new "CreateOpenAPI" request
- When the request is sent
- Then the response status is 400 Bad request
-
- @integration-only @skip-terraform-config @skip-validation @team:DataDog/apm-aoe
- Scenario: Delete an API returns "API deleted successfully" response
- Given operation "DeleteOpenAPI" enabled
- And there is a valid "managed_api" in the system
- And new "DeleteOpenAPI" request
- And request contains "id" parameter from "managed_api.data.id"
- When the request is sent
- Then the response status is 204 API deleted successfully
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: Delete an API returns "API not found error" response
- Given operation "DeleteOpenAPI" enabled
- And new "DeleteOpenAPI" request
- And request contains "id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 404 API not found error
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: Delete an API returns "Bad request" response
- Given operation "DeleteOpenAPI" enabled
- And new "DeleteOpenAPI" request
- And request contains "id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 400 Bad request
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: Get an API returns "API not found error" response
- Given operation "GetOpenAPI" enabled
- And new "GetOpenAPI" request
- And request contains "id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 404 API not found error
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: Get an API returns "Bad request" response
- Given operation "GetOpenAPI" enabled
- And new "GetOpenAPI" request
- And request contains "id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 400 Bad request
-
- @integration-only @skip-terraform-config @skip-validation @team:DataDog/apm-aoe
- Scenario: Get an API returns "OK" response
- Given operation "GetOpenAPI" enabled
- And there is a valid "managed_api" in the system
- And new "GetOpenAPI" request
- And request contains "id" parameter from "managed_api.data.id"
- When the request is sent
- Then the response status is 200 OK
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: List APIs returns "Bad request" response
- Given operation "ListAPIs" enabled
- And new "ListAPIs" request
- When the request is sent
- Then the response status is 400 Bad request
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: List APIs returns "OK" response
- Given operation "ListAPIs" enabled
- And new "ListAPIs" request
- When the request is sent
- Then the response status is 200 OK
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: Update an API returns "API not found error" response
- Given operation "UpdateOpenAPI" enabled
- And new "UpdateOpenAPI" request
- And request contains "id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 404 API not found error
-
- @integration-only @skip-terraform-config @skip-validation @team:DataDog/apm-aoe
- Scenario: Update an API returns "API updated successfully" response
- Given operation "UpdateOpenAPI" enabled
- And there is a valid "managed_api" in the system
- And new "UpdateOpenAPI" request
- And request contains "id" parameter from "managed_api.data.id"
- And request contains "openapi_spec_file" parameter with value "openapi-spec.yaml"
- When the request is sent
- Then the response status is 200 API updated successfully
- And the response "data.attributes.failed_endpoints" has length 0
-
- @generated @skip @team:DataDog/apm-aoe
- Scenario: Update an API returns "Bad request" response
- Given operation "UpdateOpenAPI" enabled
- And new "UpdateOpenAPI" request
- And request contains "id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 400 Bad request
diff --git a/src/test/resources/com/datadog/api/client/v2/api/given.json b/src/test/resources/com/datadog/api/client/v2/api/given.json
index 98e2edab7a1..6ad08f5eddd 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/given.json
+++ b/src/test/resources/com/datadog/api/client/v2/api/given.json
@@ -104,18 +104,6 @@
"tag": "Key Management",
"operationId": "CreateAPIKey"
},
- {
- "parameters": [
- {
- "name": "openapi_spec_file",
- "value": "\"openapi-spec.yaml\""
- }
- ],
- "step": "there is a valid \"managed_api\" in the system",
- "key": "managed_api",
- "tag": "API Management",
- "operationId": "CreateOpenAPI"
- },
{
"parameters": [
{
diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json
index 21d7896f03b..3456c24457e 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/undo.json
+++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json
@@ -454,43 +454,6 @@
"type": "idempotent"
}
},
- "ListAPIs": {
- "tag": "API Management",
- "undo": {
- "type": "safe"
- }
- },
- "DeleteOpenAPI": {
- "tag": "API Management",
- "undo": {
- "type": "idempotent"
- }
- },
- "GetOpenAPI": {
- "tag": "API Management",
- "undo": {
- "type": "safe"
- }
- },
- "UpdateOpenAPI": {
- "tag": "API Management",
- "undo": {
- "type": "idempotent"
- }
- },
- "CreateOpenAPI": {
- "tag": "API Management",
- "undo": {
- "operationId": "DeleteOpenAPI",
- "parameters": [
- {
- "name": "id",
- "source": "data.id"
- }
- ],
- "type": "unsafe"
- }
- },
"ListSpansMetrics": {
"tag": "Spans Metrics",
"undo": {