diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 34aa893e3e2..2c0f436fe34 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -1773,23 +1773,6 @@ components:
required: true
schema:
$ref: "#/components/schemas/RumPermanentRetentionFilterID"
- RumRateLimitScopeIDParameter:
- description: |-
- The identifier of the scope the rate limit configuration applies to.
- For the `application` scope, this is the RUM application ID.
- in: path
- name: scope_id
- required: true
- schema:
- example: cd73a516-a481-4af5-8352-9b577465c77b
- type: string
- RumRateLimitScopeTypeParameter:
- description: The type of scope the rate limit configuration applies to.
- in: path
- name: scope_type
- required: true
- schema:
- $ref: "#/components/schemas/RumRateLimitScopeType"
RumRetentionFilterIDParameter:
description: Retention filter ID.
in: path
@@ -89425,179 +89408,6 @@ components:
$ref: "#/components/schemas/RumPermanentRetentionFilterData"
type: array
type: object
- RumRateLimitAdaptiveConfig:
- description: The configuration used when `mode` is `adaptive`.
- properties:
- max_retention_rate:
- description: The maximum fraction of sessions to retain, in the range `(0, 1]`.
- example: 0.5
- exclusiveMinimum: true
- format: double
- maximum: 1
- minimum: 0
- type: number
- required:
- - max_retention_rate
- type: object
- RumRateLimitConfigAttributes:
- description: The RUM rate limit configuration properties.
- properties:
- adaptive:
- $ref: "#/components/schemas/RumRateLimitAdaptiveConfig"
- custom:
- $ref: "#/components/schemas/RumRateLimitCustomConfig"
- mode:
- $ref: "#/components/schemas/RumRateLimitMode"
- org_id:
- description: The ID of the organization the rate limit configuration belongs to.
- example: 2
- format: int64
- type: integer
- updated_at:
- description: The date the rate limit configuration was last updated.
- example: "2026-03-04T15:37:54.951447Z"
- type: string
- updated_by:
- description: The handle of the user who last updated the rate limit configuration.
- example: test@example.com
- type: string
- required:
- - mode
- - org_id
- type: object
- RumRateLimitConfigData:
- description: The RUM rate limit configuration object.
- properties:
- attributes:
- $ref: "#/components/schemas/RumRateLimitConfigAttributes"
- id:
- description: The identifier of the scope the rate limit configuration applies to.
- example: cd73a516-a481-4af5-8352-9b577465c77b
- type: string
- type:
- $ref: "#/components/schemas/RumRateLimitConfigType"
- required:
- - id
- - type
- - attributes
- type: object
- RumRateLimitConfigResponse:
- description: The RUM rate limit configuration response.
- properties:
- data:
- $ref: "#/components/schemas/RumRateLimitConfigData"
- required:
- - data
- type: object
- RumRateLimitConfigType:
- default: rum_rate_limit_config
- description: The type of the resource, always `rum_rate_limit_config`.
- enum:
- - rum_rate_limit_config
- example: rum_rate_limit_config
- type: string
- x-enum-varnames: ["RUM_RATE_LIMIT_CONFIG"]
- RumRateLimitConfigUpdateAttributes:
- description: The RUM rate limit configuration properties to create or update.
- properties:
- adaptive:
- $ref: "#/components/schemas/RumRateLimitAdaptiveConfig"
- custom:
- $ref: "#/components/schemas/RumRateLimitCustomConfig"
- mode:
- $ref: "#/components/schemas/RumRateLimitMode"
- required:
- - mode
- type: object
- RumRateLimitConfigUpdateData:
- description: The RUM rate limit configuration to create or update.
- properties:
- attributes:
- $ref: "#/components/schemas/RumRateLimitConfigUpdateAttributes"
- id:
- description: |-
- The identifier of the scope the rate limit configuration applies to.
- Must match `scope_id` in the path.
- example: cd73a516-a481-4af5-8352-9b577465c77b
- type: string
- type:
- $ref: "#/components/schemas/RumRateLimitConfigType"
- required:
- - id
- - type
- - attributes
- type: object
- RumRateLimitConfigUpdateRequest:
- description: The body of a request to create or update a RUM rate limit configuration.
- properties:
- data:
- $ref: "#/components/schemas/RumRateLimitConfigUpdateData"
- required:
- - data
- type: object
- RumRateLimitCustomConfig:
- description: The configuration used when `mode` is `custom`.
- properties:
- daily_reset_time:
- description: The time of day when the daily quota resets, in `HH:MM` 24-hour format.
- example: "08:00"
- pattern: "^([01]\\d|2[0-3]):[0-5]\\d$"
- type: string
- daily_reset_timezone:
- description: The timezone offset used for the daily reset time, in `±HH:MM` format.
- example: "+09:00"
- pattern: "^[+-](0\\d|1[0-4]):[0-5]\\d$"
- type: string
- quota_reached_action:
- $ref: "#/components/schemas/RumRateLimitQuotaReachedAction"
- session_limit:
- description: The maximum number of sessions allowed within the window.
- example: 1000000
- format: int64
- minimum: 1
- type: integer
- window_type:
- $ref: "#/components/schemas/RumRateLimitWindowType"
- required:
- - window_type
- - session_limit
- - daily_reset_time
- - daily_reset_timezone
- - quota_reached_action
- type: object
- RumRateLimitMode:
- description: |-
- The rate limit mode. `custom` enforces a fixed session limit, while
- `adaptive` dynamically adjusts retention.
- enum:
- - custom
- - adaptive
- example: custom
- type: string
- x-enum-varnames: ["CUSTOM", "ADAPTIVE"]
- RumRateLimitQuotaReachedAction:
- description: The action to take when the session quota is reached.
- enum:
- - stop
- - slowdown
- example: stop
- type: string
- x-enum-varnames: ["STOP", "SLOWDOWN"]
- RumRateLimitScopeType:
- default: application
- description: The type of scope the rate limit configuration applies to.
- enum:
- - application
- example: application
- type: string
- x-enum-varnames: ["APPLICATION"]
- RumRateLimitWindowType:
- description: The window type over which the session limit is enforced.
- enum:
- - daily
- example: daily
- type: string
- x-enum-varnames: ["DAILY"]
RumRetentionFilterAttributes:
description: The object describing attributes of a RUM retention filter.
properties:
@@ -182977,142 +182787,6 @@ paths:
tags:
- Rum Metrics
x-codegen-request-body-name: body
- /api/v2/rum/config/rate-limit/{scope_type}/{scope_id}:
- delete:
- description: Delete the RUM rate limit configuration for a given scope.
- operationId: DeleteRumRateLimitConfig
- parameters:
- - $ref: "#/components/parameters/RumRateLimitScopeTypeParameter"
- - $ref: "#/components/parameters/RumRateLimitScopeIDParameter"
- responses:
- "204":
- description: No Content
- "400":
- $ref: "#/components/responses/BadRequestResponse"
- "403":
- $ref: "#/components/responses/NotAuthorizedResponse"
- "404":
- $ref: "#/components/responses/NotFoundResponse"
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- summary: Delete a RUM rate limit configuration
- tags:
- - Rum Rate Limit
- x-unstable: |-
- **Note**: This endpoint is in preview and is subject to change.
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
- get:
- description: Get the RUM rate limit configuration for a given scope.
- operationId: GetRumRateLimitConfig
- parameters:
- - $ref: "#/components/parameters/RumRateLimitScopeTypeParameter"
- - $ref: "#/components/parameters/RumRateLimitScopeIDParameter"
- responses:
- "200":
- content:
- application/json:
- examples:
- default:
- value:
- data:
- attributes:
- custom:
- daily_reset_time: "08:00"
- daily_reset_timezone: "+09:00"
- quota_reached_action: stop
- session_limit: 1000000
- window_type: daily
- mode: custom
- org_id: 2
- updated_at: "2026-03-04T15:37:54.951447Z"
- updated_by: test@example.com
- id: cd73a516-a481-4af5-8352-9b577465c77b
- type: rum_rate_limit_config
- schema:
- $ref: "#/components/schemas/RumRateLimitConfigResponse"
- description: OK
- "400":
- $ref: "#/components/responses/BadRequestResponse"
- "403":
- $ref: "#/components/responses/NotAuthorizedResponse"
- "404":
- $ref: "#/components/responses/NotFoundResponse"
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- summary: Get a RUM rate limit configuration
- tags:
- - Rum Rate Limit
- x-unstable: |-
- **Note**: This endpoint is in preview and is subject to change.
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
- put:
- description: |-
- Create or update the RUM rate limit configuration for a given scope.
- Returns the rate limit configuration object when the request is successful.
- operationId: UpdateRumRateLimitConfig
- parameters:
- - $ref: "#/components/parameters/RumRateLimitScopeTypeParameter"
- - $ref: "#/components/parameters/RumRateLimitScopeIDParameter"
- requestBody:
- content:
- application/json:
- examples:
- default:
- value:
- data:
- attributes:
- custom:
- daily_reset_time: "08:00"
- daily_reset_timezone: "+09:00"
- quota_reached_action: stop
- session_limit: 1000000
- window_type: daily
- mode: custom
- id: cd73a516-a481-4af5-8352-9b577465c77b
- type: rum_rate_limit_config
- schema:
- $ref: "#/components/schemas/RumRateLimitConfigUpdateRequest"
- description: The definition of the RUM rate limit configuration to create or update.
- required: true
- responses:
- "200":
- content:
- application/json:
- examples:
- default:
- value:
- data:
- attributes:
- custom:
- daily_reset_time: "08:00"
- daily_reset_timezone: "+09:00"
- quota_reached_action: stop
- session_limit: 1000000
- window_type: daily
- mode: custom
- org_id: 2
- updated_at: "2026-03-04T21:52:53.526022Z"
- updated_by: test@example.com
- id: cd73a516-a481-4af5-8352-9b577465c77b
- type: rum_rate_limit_config
- schema:
- $ref: "#/components/schemas/RumRateLimitConfigResponse"
- description: OK
- "400":
- $ref: "#/components/responses/BadRequestResponse"
- "403":
- $ref: "#/components/responses/NotAuthorizedResponse"
- "404":
- $ref: "#/components/responses/NotFoundResponse"
- "429":
- $ref: "#/components/responses/TooManyRequestsResponse"
- summary: Create or update a RUM rate limit configuration
- tags:
- - Rum Rate Limit
- x-codegen-request-body-name: body
- x-unstable: |-
- **Note**: This endpoint is in preview and is subject to change.
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/rum/events:
get:
description: |-
@@ -213532,9 +213206,6 @@ tags:
description: Find out more at
url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
name: Rum Metrics
- - description: |-
- Manage RUM rate limit configurations for your organization's RUM applications.
- name: Rum Rate Limit
- description: Manage heatmap snapshots for RUM replay sessions. Create, update, delete, and retrieve snapshots to visualize user interactions on specific views.
name: Rum Replay Heatmaps
- description: Create and manage playlists of RUM replay sessions. Organize, categorize, and share collections of replay sessions for analysis and collaboration.
diff --git a/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.java b/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.java
deleted file mode 100644
index 0fac6c3a80b..00000000000
--- a/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Delete a RUM rate limit configuration returns "No Content" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.RumRateLimitApi;
-import com.datadog.api.client.v2.model.RumRateLimitScopeType;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.deleteRumRateLimitConfig", true);
- RumRateLimitApi apiInstance = new RumRateLimitApi(defaultClient);
-
- try {
- apiInstance.deleteRumRateLimitConfig(
- RumRateLimitScopeType.APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b");
- } catch (ApiException e) {
- System.err.println("Exception when calling RumRateLimitApi#deleteRumRateLimitConfig");
- 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/rum-rate-limit/GetRumRateLimitConfig.java b/examples/v2/rum-rate-limit/GetRumRateLimitConfig.java
deleted file mode 100644
index 4a40cd73a42..00000000000
--- a/examples/v2/rum-rate-limit/GetRumRateLimitConfig.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Get a RUM rate limit configuration returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.RumRateLimitApi;
-import com.datadog.api.client.v2.model.RumRateLimitConfigResponse;
-import com.datadog.api.client.v2.model.RumRateLimitScopeType;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.getRumRateLimitConfig", true);
- RumRateLimitApi apiInstance = new RumRateLimitApi(defaultClient);
-
- try {
- RumRateLimitConfigResponse result =
- apiInstance.getRumRateLimitConfig(
- RumRateLimitScopeType.APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b");
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling RumRateLimitApi#getRumRateLimitConfig");
- 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/rum-rate-limit/UpdateRumRateLimitConfig.java b/examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.java
deleted file mode 100644
index 0cde3d3a98a..00000000000
--- a/examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.java
+++ /dev/null
@@ -1,55 +0,0 @@
-// Create or update a RUM rate limit configuration returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.RumRateLimitApi;
-import com.datadog.api.client.v2.model.RumRateLimitAdaptiveConfig;
-import com.datadog.api.client.v2.model.RumRateLimitConfigResponse;
-import com.datadog.api.client.v2.model.RumRateLimitConfigType;
-import com.datadog.api.client.v2.model.RumRateLimitConfigUpdateAttributes;
-import com.datadog.api.client.v2.model.RumRateLimitConfigUpdateData;
-import com.datadog.api.client.v2.model.RumRateLimitConfigUpdateRequest;
-import com.datadog.api.client.v2.model.RumRateLimitCustomConfig;
-import com.datadog.api.client.v2.model.RumRateLimitMode;
-import com.datadog.api.client.v2.model.RumRateLimitQuotaReachedAction;
-import com.datadog.api.client.v2.model.RumRateLimitScopeType;
-import com.datadog.api.client.v2.model.RumRateLimitWindowType;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setUnstableOperationEnabled("v2.updateRumRateLimitConfig", true);
- RumRateLimitApi apiInstance = new RumRateLimitApi(defaultClient);
-
- RumRateLimitConfigUpdateRequest body =
- new RumRateLimitConfigUpdateRequest()
- .data(
- new RumRateLimitConfigUpdateData()
- .attributes(
- new RumRateLimitConfigUpdateAttributes()
- .adaptive(new RumRateLimitAdaptiveConfig().maxRetentionRate(0.5))
- .custom(
- new RumRateLimitCustomConfig()
- .dailyResetTime("08:00")
- .dailyResetTimezone("+09:00")
- .quotaReachedAction(RumRateLimitQuotaReachedAction.STOP)
- .sessionLimit(1000000L)
- .windowType(RumRateLimitWindowType.DAILY))
- .mode(RumRateLimitMode.CUSTOM))
- .id("cd73a516-a481-4af5-8352-9b577465c77b")
- .type(RumRateLimitConfigType.RUM_RATE_LIMIT_CONFIG));
-
- try {
- RumRateLimitConfigResponse result =
- apiInstance.updateRumRateLimitConfig(
- RumRateLimitScopeType.APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b", body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling RumRateLimitApi#updateRumRateLimitConfig");
- 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 8ef606a214c..4f71f6beac8 100644
--- a/src/main/java/com/datadog/api/client/ApiClient.java
+++ b/src/main/java/com/datadog/api/client/ApiClient.java
@@ -1320,9 +1320,6 @@ public class ApiClient {
put("v2.createRumConfig", false);
put("v2.getRumConfig", false);
put("v2.updateRumConfig", false);
- put("v2.deleteRumRateLimitConfig", false);
- put("v2.getRumRateLimitConfig", false);
- put("v2.updateRumRateLimitConfig", false);
put("v2.createRUMOperation", false);
put("v2.createRUMOperationStrongLink", false);
put("v2.deleteRUMOperation", false);
diff --git a/src/main/java/com/datadog/api/client/v2/api/RumRateLimitApi.java b/src/main/java/com/datadog/api/client/v2/api/RumRateLimitApi.java
deleted file mode 100644
index 21ff8b3cedd..00000000000
--- a/src/main/java/com/datadog/api/client/v2/api/RumRateLimitApi.java
+++ /dev/null
@@ -1,620 +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.RumRateLimitConfigResponse;
-import com.datadog.api.client.v2.model.RumRateLimitConfigUpdateRequest;
-import com.datadog.api.client.v2.model.RumRateLimitScopeType;
-import jakarta.ws.rs.client.Invocation;
-import jakarta.ws.rs.core.GenericType;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.concurrent.CompletableFuture;
-
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitApi {
- private ApiClient apiClient;
-
- public RumRateLimitApi() {
- this(ApiClient.getDefaultApiClient());
- }
-
- public RumRateLimitApi(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;
- }
-
- /**
- * Delete a RUM rate limit configuration.
- *
- *
See {@link #deleteRumRateLimitConfigWithHttpInfo}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required, default
- * to "application")
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @throws ApiException if fails to make API call
- */
- public void deleteRumRateLimitConfig(RumRateLimitScopeType scopeType, String scopeId)
- throws ApiException {
- deleteRumRateLimitConfigWithHttpInfo(scopeType, scopeId);
- }
-
- /**
- * Delete a RUM rate limit configuration.
- *
- *
See {@link #deleteRumRateLimitConfigWithHttpInfoAsync}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required, default
- * to "application")
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @return CompletableFuture
- */
- public CompletableFuture deleteRumRateLimitConfigAsync(
- RumRateLimitScopeType scopeType, String scopeId) {
- return deleteRumRateLimitConfigWithHttpInfoAsync(scopeType, scopeId)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Delete the RUM rate limit configuration for a given scope.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required)
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 204 | No Content | - |
- * | 400 | Bad Request | - |
- * | 403 | Not Authorized | - |
- * | 404 | Not Found | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse deleteRumRateLimitConfigWithHttpInfo(
- RumRateLimitScopeType scopeType, String scopeId) throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "deleteRumRateLimitConfig";
- 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 'scopeType' is set
- if (scopeType == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'scopeType' when calling deleteRumRateLimitConfig");
- }
-
- // verify the required parameter 'scopeId' is set
- if (scopeId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'scopeId' when calling deleteRumRateLimitConfig");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}"
- .replaceAll("\\{" + "scope_type" + "\\}", apiClient.escapeString(scopeType.toString()))
- .replaceAll("\\{" + "scope_id" + "\\}", apiClient.escapeString(scopeId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.RumRateLimitApi.deleteRumRateLimitConfig",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"*/*"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "DELETE",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- null);
- }
-
- /**
- * Delete a RUM rate limit configuration.
- *
- * See {@link #deleteRumRateLimitConfigWithHttpInfo}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required)
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @return CompletableFuture<ApiResponse<Void>>
- */
- public CompletableFuture> deleteRumRateLimitConfigWithHttpInfoAsync(
- RumRateLimitScopeType scopeType, String scopeId) {
- // Check if unstable operation is enabled
- String operationId = "deleteRumRateLimitConfig";
- 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 'scopeType' is set
- if (scopeType == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'scopeType' when calling deleteRumRateLimitConfig"));
- return result;
- }
-
- // verify the required parameter 'scopeId' is set
- if (scopeId == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'scopeId' when calling deleteRumRateLimitConfig"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}"
- .replaceAll("\\{" + "scope_type" + "\\}", apiClient.escapeString(scopeType.toString()))
- .replaceAll("\\{" + "scope_id" + "\\}", apiClient.escapeString(scopeId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.RumRateLimitApi.deleteRumRateLimitConfig",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"*/*"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "DELETE",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- null);
- }
-
- /**
- * Get a RUM rate limit configuration.
- *
- * See {@link #getRumRateLimitConfigWithHttpInfo}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required, default
- * to "application")
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @return RumRateLimitConfigResponse
- * @throws ApiException if fails to make API call
- */
- public RumRateLimitConfigResponse getRumRateLimitConfig(
- RumRateLimitScopeType scopeType, String scopeId) throws ApiException {
- return getRumRateLimitConfigWithHttpInfo(scopeType, scopeId).getData();
- }
-
- /**
- * Get a RUM rate limit configuration.
- *
- *
See {@link #getRumRateLimitConfigWithHttpInfoAsync}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required, default
- * to "application")
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @return CompletableFuture<RumRateLimitConfigResponse>
- */
- public CompletableFuture getRumRateLimitConfigAsync(
- RumRateLimitScopeType scopeType, String scopeId) {
- return getRumRateLimitConfigWithHttpInfoAsync(scopeType, scopeId)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Get the RUM rate limit configuration for a given scope.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required)
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @return ApiResponse<RumRateLimitConfigResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | OK | - |
- * | 400 | Bad Request | - |
- * | 403 | Not Authorized | - |
- * | 404 | Not Found | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse getRumRateLimitConfigWithHttpInfo(
- RumRateLimitScopeType scopeType, String scopeId) throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "getRumRateLimitConfig";
- 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 'scopeType' is set
- if (scopeType == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'scopeType' when calling getRumRateLimitConfig");
- }
-
- // verify the required parameter 'scopeId' is set
- if (scopeId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'scopeId' when calling getRumRateLimitConfig");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}"
- .replaceAll("\\{" + "scope_type" + "\\}", apiClient.escapeString(scopeType.toString()))
- .replaceAll("\\{" + "scope_id" + "\\}", apiClient.escapeString(scopeId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.RumRateLimitApi.getRumRateLimitConfig",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Get a RUM rate limit configuration.
- *
- * See {@link #getRumRateLimitConfigWithHttpInfo}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required)
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @return CompletableFuture<ApiResponse<RumRateLimitConfigResponse>>
- */
- public CompletableFuture>
- getRumRateLimitConfigWithHttpInfoAsync(RumRateLimitScopeType scopeType, String scopeId) {
- // Check if unstable operation is enabled
- String operationId = "getRumRateLimitConfig";
- 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 'scopeType' is set
- if (scopeType == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'scopeType' when calling getRumRateLimitConfig"));
- return result;
- }
-
- // verify the required parameter 'scopeId' is set
- if (scopeId == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400, "Missing the required parameter 'scopeId' when calling getRumRateLimitConfig"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}"
- .replaceAll("\\{" + "scope_type" + "\\}", apiClient.escapeString(scopeType.toString()))
- .replaceAll("\\{" + "scope_id" + "\\}", apiClient.escapeString(scopeId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.RumRateLimitApi.getRumRateLimitConfig",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } 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() {});
- }
-
- /**
- * Create or update a RUM rate limit configuration.
- *
- * See {@link #updateRumRateLimitConfigWithHttpInfo}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required, default
- * to "application")
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @param body The definition of the RUM rate limit configuration to create or update. (required)
- * @return RumRateLimitConfigResponse
- * @throws ApiException if fails to make API call
- */
- public RumRateLimitConfigResponse updateRumRateLimitConfig(
- RumRateLimitScopeType scopeType, String scopeId, RumRateLimitConfigUpdateRequest body)
- throws ApiException {
- return updateRumRateLimitConfigWithHttpInfo(scopeType, scopeId, body).getData();
- }
-
- /**
- * Create or update a RUM rate limit configuration.
- *
- *
See {@link #updateRumRateLimitConfigWithHttpInfoAsync}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required, default
- * to "application")
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @param body The definition of the RUM rate limit configuration to create or update. (required)
- * @return CompletableFuture<RumRateLimitConfigResponse>
- */
- public CompletableFuture updateRumRateLimitConfigAsync(
- RumRateLimitScopeType scopeType, String scopeId, RumRateLimitConfigUpdateRequest body) {
- return updateRumRateLimitConfigWithHttpInfoAsync(scopeType, scopeId, body)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Create or update the RUM rate limit configuration for a given scope. Returns the rate limit
- * configuration object when the request is successful.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required)
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @param body The definition of the RUM rate limit configuration to create or update. (required)
- * @return ApiResponse<RumRateLimitConfigResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | OK | - |
- * | 400 | Bad Request | - |
- * | 403 | Not Authorized | - |
- * | 404 | Not Found | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse updateRumRateLimitConfigWithHttpInfo(
- RumRateLimitScopeType scopeType, String scopeId, RumRateLimitConfigUpdateRequest body)
- throws ApiException {
- // Check if unstable operation is enabled
- String operationId = "updateRumRateLimitConfig";
- if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
- apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
- } else {
- throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
- }
- Object localVarPostBody = body;
-
- // verify the required parameter 'scopeType' is set
- if (scopeType == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'scopeType' when calling updateRumRateLimitConfig");
- }
-
- // verify the required parameter 'scopeId' is set
- if (scopeId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'scopeId' when calling updateRumRateLimitConfig");
- }
-
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'body' when calling updateRumRateLimitConfig");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}"
- .replaceAll("\\{" + "scope_type" + "\\}", apiClient.escapeString(scopeType.toString()))
- .replaceAll("\\{" + "scope_id" + "\\}", apiClient.escapeString(scopeId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.RumRateLimitApi.updateRumRateLimitConfig",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "PUT",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Create or update a RUM rate limit configuration.
- *
- * See {@link #updateRumRateLimitConfigWithHttpInfo}.
- *
- * @param scopeType The type of scope the rate limit configuration applies to. (required)
- * @param scopeId The identifier of the scope the rate limit configuration applies to. For the
- * application scope, this is the RUM application ID. (required)
- * @param body The definition of the RUM rate limit configuration to create or update. (required)
- * @return CompletableFuture<ApiResponse<RumRateLimitConfigResponse>>
- */
- public CompletableFuture>
- updateRumRateLimitConfigWithHttpInfoAsync(
- RumRateLimitScopeType scopeType, String scopeId, RumRateLimitConfigUpdateRequest body) {
- // Check if unstable operation is enabled
- String operationId = "updateRumRateLimitConfig";
- if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
- apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
- } else {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
- return result;
- }
- Object localVarPostBody = body;
-
- // verify the required parameter 'scopeType' is set
- if (scopeType == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'scopeType' when calling updateRumRateLimitConfig"));
- return result;
- }
-
- // verify the required parameter 'scopeId' is set
- if (scopeId == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'scopeId' when calling updateRumRateLimitConfig"));
- return result;
- }
-
- // verify the required parameter 'body' is set
- if (body == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400, "Missing the required parameter 'body' when calling updateRumRateLimitConfig"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/rum/config/rate-limit/{scope_type}/{scope_id}"
- .replaceAll("\\{" + "scope_type" + "\\}", apiClient.escapeString(scopeType.toString()))
- .replaceAll("\\{" + "scope_id" + "\\}", apiClient.escapeString(scopeId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.RumRateLimitApi.updateRumRateLimitConfig",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "PUT",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitAdaptiveConfig.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitAdaptiveConfig.java
deleted file mode 100644
index f2d4353a4a2..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitAdaptiveConfig.java
+++ /dev/null
@@ -1,146 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The configuration used when mode is adaptive. */
-@JsonPropertyOrder({RumRateLimitAdaptiveConfig.JSON_PROPERTY_MAX_RETENTION_RATE})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitAdaptiveConfig {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_MAX_RETENTION_RATE = "max_retention_rate";
- private Double maxRetentionRate;
-
- public RumRateLimitAdaptiveConfig() {}
-
- @JsonCreator
- public RumRateLimitAdaptiveConfig(
- @JsonProperty(required = true, value = JSON_PROPERTY_MAX_RETENTION_RATE)
- Double maxRetentionRate) {
- this.maxRetentionRate = maxRetentionRate;
- }
-
- public RumRateLimitAdaptiveConfig maxRetentionRate(Double maxRetentionRate) {
- this.maxRetentionRate = maxRetentionRate;
- return this;
- }
-
- /**
- * The maximum fraction of sessions to retain, in the range (0, 1]. minimum: 0
- * maximum: 1
- *
- * @return maxRetentionRate
- */
- @JsonProperty(JSON_PROPERTY_MAX_RETENTION_RATE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public Double getMaxRetentionRate() {
- return maxRetentionRate;
- }
-
- public void setMaxRetentionRate(Double maxRetentionRate) {
- this.maxRetentionRate = maxRetentionRate;
- }
-
- /**
- * 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 RumRateLimitAdaptiveConfig
- */
- @JsonAnySetter
- public RumRateLimitAdaptiveConfig 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 RumRateLimitAdaptiveConfig object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitAdaptiveConfig rumRateLimitAdaptiveConfig = (RumRateLimitAdaptiveConfig) o;
- return Objects.equals(this.maxRetentionRate, rumRateLimitAdaptiveConfig.maxRetentionRate)
- && Objects.equals(
- this.additionalProperties, rumRateLimitAdaptiveConfig.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(maxRetentionRate, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitAdaptiveConfig {\n");
- sb.append(" maxRetentionRate: ").append(toIndentedString(maxRetentionRate)).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/RumRateLimitConfigAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigAttributes.java
deleted file mode 100644
index 5d3baf54d01..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigAttributes.java
+++ /dev/null
@@ -1,296 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The RUM rate limit configuration properties. */
-@JsonPropertyOrder({
- RumRateLimitConfigAttributes.JSON_PROPERTY_ADAPTIVE,
- RumRateLimitConfigAttributes.JSON_PROPERTY_CUSTOM,
- RumRateLimitConfigAttributes.JSON_PROPERTY_MODE,
- RumRateLimitConfigAttributes.JSON_PROPERTY_ORG_ID,
- RumRateLimitConfigAttributes.JSON_PROPERTY_UPDATED_AT,
- RumRateLimitConfigAttributes.JSON_PROPERTY_UPDATED_BY
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitConfigAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ADAPTIVE = "adaptive";
- private RumRateLimitAdaptiveConfig adaptive;
-
- public static final String JSON_PROPERTY_CUSTOM = "custom";
- private RumRateLimitCustomConfig custom;
-
- public static final String JSON_PROPERTY_MODE = "mode";
- private RumRateLimitMode mode;
-
- public static final String JSON_PROPERTY_ORG_ID = "org_id";
- private Long orgId;
-
- public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
- private String updatedAt;
-
- public static final String JSON_PROPERTY_UPDATED_BY = "updated_by";
- private String updatedBy;
-
- public RumRateLimitConfigAttributes() {}
-
- @JsonCreator
- public RumRateLimitConfigAttributes(
- @JsonProperty(required = true, value = JSON_PROPERTY_MODE) RumRateLimitMode mode,
- @JsonProperty(required = true, value = JSON_PROPERTY_ORG_ID) Long orgId) {
- this.mode = mode;
- this.unparsed |= !mode.isValid();
- this.orgId = orgId;
- }
-
- public RumRateLimitConfigAttributes adaptive(RumRateLimitAdaptiveConfig adaptive) {
- this.adaptive = adaptive;
- this.unparsed |= adaptive.unparsed;
- return this;
- }
-
- /**
- * The configuration used when mode is adaptive.
- *
- * @return adaptive
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ADAPTIVE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public RumRateLimitAdaptiveConfig getAdaptive() {
- return adaptive;
- }
-
- public void setAdaptive(RumRateLimitAdaptiveConfig adaptive) {
- this.adaptive = adaptive;
- if (adaptive != null) {
- this.unparsed |= adaptive.unparsed;
- }
- }
-
- public RumRateLimitConfigAttributes custom(RumRateLimitCustomConfig custom) {
- this.custom = custom;
- this.unparsed |= custom.unparsed;
- return this;
- }
-
- /**
- * The configuration used when mode is custom.
- *
- * @return custom
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_CUSTOM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public RumRateLimitCustomConfig getCustom() {
- return custom;
- }
-
- public void setCustom(RumRateLimitCustomConfig custom) {
- this.custom = custom;
- if (custom != null) {
- this.unparsed |= custom.unparsed;
- }
- }
-
- public RumRateLimitConfigAttributes mode(RumRateLimitMode mode) {
- this.mode = mode;
- this.unparsed |= !mode.isValid();
- return this;
- }
-
- /**
- * The rate limit mode. custom enforces a fixed session limit, while adaptive
- * dynamically adjusts retention.
- *
- * @return mode
- */
- @JsonProperty(JSON_PROPERTY_MODE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitMode getMode() {
- return mode;
- }
-
- public void setMode(RumRateLimitMode mode) {
- if (!mode.isValid()) {
- this.unparsed = true;
- }
- this.mode = mode;
- }
-
- public RumRateLimitConfigAttributes orgId(Long orgId) {
- this.orgId = orgId;
- return this;
- }
-
- /**
- * The ID of the organization the rate limit configuration belongs to.
- *
- * @return orgId
- */
- @JsonProperty(JSON_PROPERTY_ORG_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public Long getOrgId() {
- return orgId;
- }
-
- public void setOrgId(Long orgId) {
- this.orgId = orgId;
- }
-
- public RumRateLimitConfigAttributes updatedAt(String updatedAt) {
- this.updatedAt = updatedAt;
- return this;
- }
-
- /**
- * The date the rate limit configuration was last updated.
- *
- * @return updatedAt
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_UPDATED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getUpdatedAt() {
- return updatedAt;
- }
-
- public void setUpdatedAt(String updatedAt) {
- this.updatedAt = updatedAt;
- }
-
- public RumRateLimitConfigAttributes updatedBy(String updatedBy) {
- this.updatedBy = updatedBy;
- return this;
- }
-
- /**
- * The handle of the user who last updated the rate limit configuration.
- *
- * @return updatedBy
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_UPDATED_BY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getUpdatedBy() {
- return updatedBy;
- }
-
- public void setUpdatedBy(String updatedBy) {
- this.updatedBy = updatedBy;
- }
-
- /**
- * 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 RumRateLimitConfigAttributes
- */
- @JsonAnySetter
- public RumRateLimitConfigAttributes 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 RumRateLimitConfigAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitConfigAttributes rumRateLimitConfigAttributes = (RumRateLimitConfigAttributes) o;
- return Objects.equals(this.adaptive, rumRateLimitConfigAttributes.adaptive)
- && Objects.equals(this.custom, rumRateLimitConfigAttributes.custom)
- && Objects.equals(this.mode, rumRateLimitConfigAttributes.mode)
- && Objects.equals(this.orgId, rumRateLimitConfigAttributes.orgId)
- && Objects.equals(this.updatedAt, rumRateLimitConfigAttributes.updatedAt)
- && Objects.equals(this.updatedBy, rumRateLimitConfigAttributes.updatedBy)
- && Objects.equals(
- this.additionalProperties, rumRateLimitConfigAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(adaptive, custom, mode, orgId, updatedAt, updatedBy, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitConfigAttributes {\n");
- sb.append(" adaptive: ").append(toIndentedString(adaptive)).append("\n");
- sb.append(" custom: ").append(toIndentedString(custom)).append("\n");
- sb.append(" mode: ").append(toIndentedString(mode)).append("\n");
- sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
- sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
- sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).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/RumRateLimitConfigData.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigData.java
deleted file mode 100644
index 932510f59c9..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigData.java
+++ /dev/null
@@ -1,212 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The RUM rate limit configuration object. */
-@JsonPropertyOrder({
- RumRateLimitConfigData.JSON_PROPERTY_ATTRIBUTES,
- RumRateLimitConfigData.JSON_PROPERTY_ID,
- RumRateLimitConfigData.JSON_PROPERTY_TYPE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitConfigData {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private RumRateLimitConfigAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private String id;
-
- public static final String JSON_PROPERTY_TYPE = "type";
- private RumRateLimitConfigType type = RumRateLimitConfigType.RUM_RATE_LIMIT_CONFIG;
-
- public RumRateLimitConfigData() {}
-
- @JsonCreator
- public RumRateLimitConfigData(
- @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
- RumRateLimitConfigAttributes attributes,
- @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
- @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) RumRateLimitConfigType type) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- this.id = id;
- this.type = type;
- this.unparsed |= !type.isValid();
- }
-
- public RumRateLimitConfigData attributes(RumRateLimitConfigAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * The RUM rate limit configuration properties.
- *
- * @return attributes
- */
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitConfigAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(RumRateLimitConfigAttributes attributes) {
- this.attributes = attributes;
- if (attributes != null) {
- this.unparsed |= attributes.unparsed;
- }
- }
-
- public RumRateLimitConfigData id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * The identifier of the scope the rate limit configuration applies to.
- *
- * @return id
- */
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public RumRateLimitConfigData type(RumRateLimitConfigType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
- return this;
- }
-
- /**
- * The type of the resource, always rum_rate_limit_config.
- *
- * @return type
- */
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitConfigType getType() {
- return type;
- }
-
- public void setType(RumRateLimitConfigType type) {
- if (!type.isValid()) {
- this.unparsed = true;
- }
- this.type = type;
- }
-
- /**
- * 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 RumRateLimitConfigData
- */
- @JsonAnySetter
- public RumRateLimitConfigData 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 RumRateLimitConfigData object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitConfigData rumRateLimitConfigData = (RumRateLimitConfigData) o;
- return Objects.equals(this.attributes, rumRateLimitConfigData.attributes)
- && Objects.equals(this.id, rumRateLimitConfigData.id)
- && Objects.equals(this.type, rumRateLimitConfigData.type)
- && Objects.equals(this.additionalProperties, rumRateLimitConfigData.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, type, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitConfigData {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).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/RumRateLimitConfigResponse.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigResponse.java
deleted file mode 100644
index 1d672582185..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigResponse.java
+++ /dev/null
@@ -1,149 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The RUM rate limit configuration response. */
-@JsonPropertyOrder({RumRateLimitConfigResponse.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitConfigResponse {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private RumRateLimitConfigData data;
-
- public RumRateLimitConfigResponse() {}
-
- @JsonCreator
- public RumRateLimitConfigResponse(
- @JsonProperty(required = true, value = JSON_PROPERTY_DATA) RumRateLimitConfigData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- }
-
- public RumRateLimitConfigResponse data(RumRateLimitConfigData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * The RUM rate limit configuration object.
- *
- * @return data
- */
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitConfigData getData() {
- return data;
- }
-
- public void setData(RumRateLimitConfigData data) {
- this.data = data;
- if (data != null) {
- this.unparsed |= data.unparsed;
- }
- }
-
- /**
- * 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 RumRateLimitConfigResponse
- */
- @JsonAnySetter
- public RumRateLimitConfigResponse 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 RumRateLimitConfigResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitConfigResponse rumRateLimitConfigResponse = (RumRateLimitConfigResponse) o;
- return Objects.equals(this.data, rumRateLimitConfigResponse.data)
- && Objects.equals(
- this.additionalProperties, rumRateLimitConfigResponse.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitConfigResponse {\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/RumRateLimitConfigType.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigType.java
deleted file mode 100644
index 5c3238f126a..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigType.java
+++ /dev/null
@@ -1,57 +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.datadog.api.client.ModelEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-/** The type of the resource, always rum_rate_limit_config. */
-@JsonSerialize(using = RumRateLimitConfigType.RumRateLimitConfigTypeSerializer.class)
-public class RumRateLimitConfigType extends ModelEnum {
-
- private static final Set allowedValues =
- new HashSet(Arrays.asList("rum_rate_limit_config"));
-
- public static final RumRateLimitConfigType RUM_RATE_LIMIT_CONFIG =
- new RumRateLimitConfigType("rum_rate_limit_config");
-
- RumRateLimitConfigType(String value) {
- super(value, allowedValues);
- }
-
- public static class RumRateLimitConfigTypeSerializer
- extends StdSerializer {
- public RumRateLimitConfigTypeSerializer(Class t) {
- super(t);
- }
-
- public RumRateLimitConfigTypeSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- RumRateLimitConfigType value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.value);
- }
- }
-
- @JsonCreator
- public static RumRateLimitConfigType fromValue(String value) {
- return new RumRateLimitConfigType(value);
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigUpdateAttributes.java
deleted file mode 100644
index 0c79f569259..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigUpdateAttributes.java
+++ /dev/null
@@ -1,215 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The RUM rate limit configuration properties to create or update. */
-@JsonPropertyOrder({
- RumRateLimitConfigUpdateAttributes.JSON_PROPERTY_ADAPTIVE,
- RumRateLimitConfigUpdateAttributes.JSON_PROPERTY_CUSTOM,
- RumRateLimitConfigUpdateAttributes.JSON_PROPERTY_MODE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitConfigUpdateAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ADAPTIVE = "adaptive";
- private RumRateLimitAdaptiveConfig adaptive;
-
- public static final String JSON_PROPERTY_CUSTOM = "custom";
- private RumRateLimitCustomConfig custom;
-
- public static final String JSON_PROPERTY_MODE = "mode";
- private RumRateLimitMode mode;
-
- public RumRateLimitConfigUpdateAttributes() {}
-
- @JsonCreator
- public RumRateLimitConfigUpdateAttributes(
- @JsonProperty(required = true, value = JSON_PROPERTY_MODE) RumRateLimitMode mode) {
- this.mode = mode;
- this.unparsed |= !mode.isValid();
- }
-
- public RumRateLimitConfigUpdateAttributes adaptive(RumRateLimitAdaptiveConfig adaptive) {
- this.adaptive = adaptive;
- this.unparsed |= adaptive.unparsed;
- return this;
- }
-
- /**
- * The configuration used when mode is adaptive.
- *
- * @return adaptive
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ADAPTIVE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public RumRateLimitAdaptiveConfig getAdaptive() {
- return adaptive;
- }
-
- public void setAdaptive(RumRateLimitAdaptiveConfig adaptive) {
- this.adaptive = adaptive;
- if (adaptive != null) {
- this.unparsed |= adaptive.unparsed;
- }
- }
-
- public RumRateLimitConfigUpdateAttributes custom(RumRateLimitCustomConfig custom) {
- this.custom = custom;
- this.unparsed |= custom.unparsed;
- return this;
- }
-
- /**
- * The configuration used when mode is custom.
- *
- * @return custom
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_CUSTOM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public RumRateLimitCustomConfig getCustom() {
- return custom;
- }
-
- public void setCustom(RumRateLimitCustomConfig custom) {
- this.custom = custom;
- if (custom != null) {
- this.unparsed |= custom.unparsed;
- }
- }
-
- public RumRateLimitConfigUpdateAttributes mode(RumRateLimitMode mode) {
- this.mode = mode;
- this.unparsed |= !mode.isValid();
- return this;
- }
-
- /**
- * The rate limit mode. custom enforces a fixed session limit, while adaptive
- * dynamically adjusts retention.
- *
- * @return mode
- */
- @JsonProperty(JSON_PROPERTY_MODE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitMode getMode() {
- return mode;
- }
-
- public void setMode(RumRateLimitMode mode) {
- if (!mode.isValid()) {
- this.unparsed = true;
- }
- this.mode = mode;
- }
-
- /**
- * 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 RumRateLimitConfigUpdateAttributes
- */
- @JsonAnySetter
- public RumRateLimitConfigUpdateAttributes 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 RumRateLimitConfigUpdateAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitConfigUpdateAttributes rumRateLimitConfigUpdateAttributes =
- (RumRateLimitConfigUpdateAttributes) o;
- return Objects.equals(this.adaptive, rumRateLimitConfigUpdateAttributes.adaptive)
- && Objects.equals(this.custom, rumRateLimitConfigUpdateAttributes.custom)
- && Objects.equals(this.mode, rumRateLimitConfigUpdateAttributes.mode)
- && Objects.equals(
- this.additionalProperties, rumRateLimitConfigUpdateAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(adaptive, custom, mode, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitConfigUpdateAttributes {\n");
- sb.append(" adaptive: ").append(toIndentedString(adaptive)).append("\n");
- sb.append(" custom: ").append(toIndentedString(custom)).append("\n");
- sb.append(" mode: ").append(toIndentedString(mode)).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/RumRateLimitConfigUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigUpdateData.java
deleted file mode 100644
index 8e9ea87702a..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigUpdateData.java
+++ /dev/null
@@ -1,214 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The RUM rate limit configuration to create or update. */
-@JsonPropertyOrder({
- RumRateLimitConfigUpdateData.JSON_PROPERTY_ATTRIBUTES,
- RumRateLimitConfigUpdateData.JSON_PROPERTY_ID,
- RumRateLimitConfigUpdateData.JSON_PROPERTY_TYPE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitConfigUpdateData {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private RumRateLimitConfigUpdateAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private String id;
-
- public static final String JSON_PROPERTY_TYPE = "type";
- private RumRateLimitConfigType type = RumRateLimitConfigType.RUM_RATE_LIMIT_CONFIG;
-
- public RumRateLimitConfigUpdateData() {}
-
- @JsonCreator
- public RumRateLimitConfigUpdateData(
- @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
- RumRateLimitConfigUpdateAttributes attributes,
- @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
- @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) RumRateLimitConfigType type) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- this.id = id;
- this.type = type;
- this.unparsed |= !type.isValid();
- }
-
- public RumRateLimitConfigUpdateData attributes(RumRateLimitConfigUpdateAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * The RUM rate limit configuration properties to create or update.
- *
- * @return attributes
- */
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitConfigUpdateAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(RumRateLimitConfigUpdateAttributes attributes) {
- this.attributes = attributes;
- if (attributes != null) {
- this.unparsed |= attributes.unparsed;
- }
- }
-
- public RumRateLimitConfigUpdateData id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * The identifier of the scope the rate limit configuration applies to. Must match scope_id
- * in the path.
- *
- * @return id
- */
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public RumRateLimitConfigUpdateData type(RumRateLimitConfigType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
- return this;
- }
-
- /**
- * The type of the resource, always rum_rate_limit_config.
- *
- * @return type
- */
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitConfigType getType() {
- return type;
- }
-
- public void setType(RumRateLimitConfigType type) {
- if (!type.isValid()) {
- this.unparsed = true;
- }
- this.type = type;
- }
-
- /**
- * 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 RumRateLimitConfigUpdateData
- */
- @JsonAnySetter
- public RumRateLimitConfigUpdateData 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 RumRateLimitConfigUpdateData object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitConfigUpdateData rumRateLimitConfigUpdateData = (RumRateLimitConfigUpdateData) o;
- return Objects.equals(this.attributes, rumRateLimitConfigUpdateData.attributes)
- && Objects.equals(this.id, rumRateLimitConfigUpdateData.id)
- && Objects.equals(this.type, rumRateLimitConfigUpdateData.type)
- && Objects.equals(
- this.additionalProperties, rumRateLimitConfigUpdateData.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, type, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitConfigUpdateData {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).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/RumRateLimitConfigUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigUpdateRequest.java
deleted file mode 100644
index 363864cf5f9..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitConfigUpdateRequest.java
+++ /dev/null
@@ -1,151 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The body of a request to create or update a RUM rate limit configuration. */
-@JsonPropertyOrder({RumRateLimitConfigUpdateRequest.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitConfigUpdateRequest {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private RumRateLimitConfigUpdateData data;
-
- public RumRateLimitConfigUpdateRequest() {}
-
- @JsonCreator
- public RumRateLimitConfigUpdateRequest(
- @JsonProperty(required = true, value = JSON_PROPERTY_DATA)
- RumRateLimitConfigUpdateData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- }
-
- public RumRateLimitConfigUpdateRequest data(RumRateLimitConfigUpdateData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * The RUM rate limit configuration to create or update.
- *
- * @return data
- */
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitConfigUpdateData getData() {
- return data;
- }
-
- public void setData(RumRateLimitConfigUpdateData data) {
- this.data = data;
- if (data != null) {
- this.unparsed |= data.unparsed;
- }
- }
-
- /**
- * 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 RumRateLimitConfigUpdateRequest
- */
- @JsonAnySetter
- public RumRateLimitConfigUpdateRequest 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 RumRateLimitConfigUpdateRequest object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitConfigUpdateRequest rumRateLimitConfigUpdateRequest =
- (RumRateLimitConfigUpdateRequest) o;
- return Objects.equals(this.data, rumRateLimitConfigUpdateRequest.data)
- && Objects.equals(
- this.additionalProperties, rumRateLimitConfigUpdateRequest.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitConfigUpdateRequest {\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/RumRateLimitCustomConfig.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitCustomConfig.java
deleted file mode 100644
index d1a7623794b..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitCustomConfig.java
+++ /dev/null
@@ -1,277 +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.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** The configuration used when mode is custom. */
-@JsonPropertyOrder({
- RumRateLimitCustomConfig.JSON_PROPERTY_DAILY_RESET_TIME,
- RumRateLimitCustomConfig.JSON_PROPERTY_DAILY_RESET_TIMEZONE,
- RumRateLimitCustomConfig.JSON_PROPERTY_QUOTA_REACHED_ACTION,
- RumRateLimitCustomConfig.JSON_PROPERTY_SESSION_LIMIT,
- RumRateLimitCustomConfig.JSON_PROPERTY_WINDOW_TYPE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class RumRateLimitCustomConfig {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DAILY_RESET_TIME = "daily_reset_time";
- private String dailyResetTime;
-
- public static final String JSON_PROPERTY_DAILY_RESET_TIMEZONE = "daily_reset_timezone";
- private String dailyResetTimezone;
-
- public static final String JSON_PROPERTY_QUOTA_REACHED_ACTION = "quota_reached_action";
- private RumRateLimitQuotaReachedAction quotaReachedAction;
-
- public static final String JSON_PROPERTY_SESSION_LIMIT = "session_limit";
- private Long sessionLimit;
-
- public static final String JSON_PROPERTY_WINDOW_TYPE = "window_type";
- private RumRateLimitWindowType windowType;
-
- public RumRateLimitCustomConfig() {}
-
- @JsonCreator
- public RumRateLimitCustomConfig(
- @JsonProperty(required = true, value = JSON_PROPERTY_DAILY_RESET_TIME) String dailyResetTime,
- @JsonProperty(required = true, value = JSON_PROPERTY_DAILY_RESET_TIMEZONE)
- String dailyResetTimezone,
- @JsonProperty(required = true, value = JSON_PROPERTY_QUOTA_REACHED_ACTION)
- RumRateLimitQuotaReachedAction quotaReachedAction,
- @JsonProperty(required = true, value = JSON_PROPERTY_SESSION_LIMIT) Long sessionLimit,
- @JsonProperty(required = true, value = JSON_PROPERTY_WINDOW_TYPE)
- RumRateLimitWindowType windowType) {
- this.dailyResetTime = dailyResetTime;
- this.dailyResetTimezone = dailyResetTimezone;
- this.quotaReachedAction = quotaReachedAction;
- this.unparsed |= !quotaReachedAction.isValid();
- this.sessionLimit = sessionLimit;
- this.windowType = windowType;
- this.unparsed |= !windowType.isValid();
- }
-
- public RumRateLimitCustomConfig dailyResetTime(String dailyResetTime) {
- this.dailyResetTime = dailyResetTime;
- return this;
- }
-
- /**
- * The time of day when the daily quota resets, in HH:MM 24-hour format.
- *
- * @return dailyResetTime
- */
- @JsonProperty(JSON_PROPERTY_DAILY_RESET_TIME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getDailyResetTime() {
- return dailyResetTime;
- }
-
- public void setDailyResetTime(String dailyResetTime) {
- this.dailyResetTime = dailyResetTime;
- }
-
- public RumRateLimitCustomConfig dailyResetTimezone(String dailyResetTimezone) {
- this.dailyResetTimezone = dailyResetTimezone;
- return this;
- }
-
- /**
- * The timezone offset used for the daily reset time, in ±HH:MM format.
- *
- * @return dailyResetTimezone
- */
- @JsonProperty(JSON_PROPERTY_DAILY_RESET_TIMEZONE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getDailyResetTimezone() {
- return dailyResetTimezone;
- }
-
- public void setDailyResetTimezone(String dailyResetTimezone) {
- this.dailyResetTimezone = dailyResetTimezone;
- }
-
- public RumRateLimitCustomConfig quotaReachedAction(
- RumRateLimitQuotaReachedAction quotaReachedAction) {
- this.quotaReachedAction = quotaReachedAction;
- this.unparsed |= !quotaReachedAction.isValid();
- return this;
- }
-
- /**
- * The action to take when the session quota is reached.
- *
- * @return quotaReachedAction
- */
- @JsonProperty(JSON_PROPERTY_QUOTA_REACHED_ACTION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitQuotaReachedAction getQuotaReachedAction() {
- return quotaReachedAction;
- }
-
- public void setQuotaReachedAction(RumRateLimitQuotaReachedAction quotaReachedAction) {
- if (!quotaReachedAction.isValid()) {
- this.unparsed = true;
- }
- this.quotaReachedAction = quotaReachedAction;
- }
-
- public RumRateLimitCustomConfig sessionLimit(Long sessionLimit) {
- this.sessionLimit = sessionLimit;
- return this;
- }
-
- /**
- * The maximum number of sessions allowed within the window. minimum: 1
- *
- * @return sessionLimit
- */
- @JsonProperty(JSON_PROPERTY_SESSION_LIMIT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public Long getSessionLimit() {
- return sessionLimit;
- }
-
- public void setSessionLimit(Long sessionLimit) {
- this.sessionLimit = sessionLimit;
- }
-
- public RumRateLimitCustomConfig windowType(RumRateLimitWindowType windowType) {
- this.windowType = windowType;
- this.unparsed |= !windowType.isValid();
- return this;
- }
-
- /**
- * The window type over which the session limit is enforced.
- *
- * @return windowType
- */
- @JsonProperty(JSON_PROPERTY_WINDOW_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public RumRateLimitWindowType getWindowType() {
- return windowType;
- }
-
- public void setWindowType(RumRateLimitWindowType windowType) {
- if (!windowType.isValid()) {
- this.unparsed = true;
- }
- this.windowType = windowType;
- }
-
- /**
- * 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 RumRateLimitCustomConfig
- */
- @JsonAnySetter
- public RumRateLimitCustomConfig 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 RumRateLimitCustomConfig object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RumRateLimitCustomConfig rumRateLimitCustomConfig = (RumRateLimitCustomConfig) o;
- return Objects.equals(this.dailyResetTime, rumRateLimitCustomConfig.dailyResetTime)
- && Objects.equals(this.dailyResetTimezone, rumRateLimitCustomConfig.dailyResetTimezone)
- && Objects.equals(this.quotaReachedAction, rumRateLimitCustomConfig.quotaReachedAction)
- && Objects.equals(this.sessionLimit, rumRateLimitCustomConfig.sessionLimit)
- && Objects.equals(this.windowType, rumRateLimitCustomConfig.windowType)
- && Objects.equals(this.additionalProperties, rumRateLimitCustomConfig.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- dailyResetTime,
- dailyResetTimezone,
- quotaReachedAction,
- sessionLimit,
- windowType,
- additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class RumRateLimitCustomConfig {\n");
- sb.append(" dailyResetTime: ").append(toIndentedString(dailyResetTime)).append("\n");
- sb.append(" dailyResetTimezone: ").append(toIndentedString(dailyResetTimezone)).append("\n");
- sb.append(" quotaReachedAction: ").append(toIndentedString(quotaReachedAction)).append("\n");
- sb.append(" sessionLimit: ").append(toIndentedString(sessionLimit)).append("\n");
- sb.append(" windowType: ").append(toIndentedString(windowType)).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/RumRateLimitMode.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitMode.java
deleted file mode 100644
index 386cf07e47a..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitMode.java
+++ /dev/null
@@ -1,58 +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.datadog.api.client.ModelEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-/**
- * The rate limit mode. custom enforces a fixed session limit, while adaptive
- * dynamically adjusts retention.
- */
-@JsonSerialize(using = RumRateLimitMode.RumRateLimitModeSerializer.class)
-public class RumRateLimitMode extends ModelEnum {
-
- private static final Set allowedValues =
- new HashSet(Arrays.asList("custom", "adaptive"));
-
- public static final RumRateLimitMode CUSTOM = new RumRateLimitMode("custom");
- public static final RumRateLimitMode ADAPTIVE = new RumRateLimitMode("adaptive");
-
- RumRateLimitMode(String value) {
- super(value, allowedValues);
- }
-
- public static class RumRateLimitModeSerializer extends StdSerializer {
- public RumRateLimitModeSerializer(Class t) {
- super(t);
- }
-
- public RumRateLimitModeSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(RumRateLimitMode value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.value);
- }
- }
-
- @JsonCreator
- public static RumRateLimitMode fromValue(String value) {
- return new RumRateLimitMode(value);
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitQuotaReachedAction.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitQuotaReachedAction.java
deleted file mode 100644
index c3847c2dc5c..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitQuotaReachedAction.java
+++ /dev/null
@@ -1,60 +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.datadog.api.client.ModelEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-/** The action to take when the session quota is reached. */
-@JsonSerialize(
- using = RumRateLimitQuotaReachedAction.RumRateLimitQuotaReachedActionSerializer.class)
-public class RumRateLimitQuotaReachedAction extends ModelEnum {
-
- private static final Set allowedValues =
- new HashSet(Arrays.asList("stop", "slowdown"));
-
- public static final RumRateLimitQuotaReachedAction STOP =
- new RumRateLimitQuotaReachedAction("stop");
- public static final RumRateLimitQuotaReachedAction SLOWDOWN =
- new RumRateLimitQuotaReachedAction("slowdown");
-
- RumRateLimitQuotaReachedAction(String value) {
- super(value, allowedValues);
- }
-
- public static class RumRateLimitQuotaReachedActionSerializer
- extends StdSerializer {
- public RumRateLimitQuotaReachedActionSerializer(Class t) {
- super(t);
- }
-
- public RumRateLimitQuotaReachedActionSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- RumRateLimitQuotaReachedAction value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.value);
- }
- }
-
- @JsonCreator
- public static RumRateLimitQuotaReachedAction fromValue(String value) {
- return new RumRateLimitQuotaReachedAction(value);
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitScopeType.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitScopeType.java
deleted file mode 100644
index 793ccd67fae..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitScopeType.java
+++ /dev/null
@@ -1,55 +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.datadog.api.client.ModelEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-/** The type of scope the rate limit configuration applies to. */
-@JsonSerialize(using = RumRateLimitScopeType.RumRateLimitScopeTypeSerializer.class)
-public class RumRateLimitScopeType extends ModelEnum {
-
- private static final Set allowedValues =
- new HashSet(Arrays.asList("application"));
-
- public static final RumRateLimitScopeType APPLICATION = new RumRateLimitScopeType("application");
-
- RumRateLimitScopeType(String value) {
- super(value, allowedValues);
- }
-
- public static class RumRateLimitScopeTypeSerializer extends StdSerializer {
- public RumRateLimitScopeTypeSerializer(Class t) {
- super(t);
- }
-
- public RumRateLimitScopeTypeSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- RumRateLimitScopeType value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.value);
- }
- }
-
- @JsonCreator
- public static RumRateLimitScopeType fromValue(String value) {
- return new RumRateLimitScopeType(value);
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitWindowType.java b/src/main/java/com/datadog/api/client/v2/model/RumRateLimitWindowType.java
deleted file mode 100644
index 1439da26bfb..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/RumRateLimitWindowType.java
+++ /dev/null
@@ -1,55 +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.datadog.api.client.ModelEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-/** The window type over which the session limit is enforced. */
-@JsonSerialize(using = RumRateLimitWindowType.RumRateLimitWindowTypeSerializer.class)
-public class RumRateLimitWindowType extends ModelEnum {
-
- private static final Set allowedValues = new HashSet(Arrays.asList("daily"));
-
- public static final RumRateLimitWindowType DAILY = new RumRateLimitWindowType("daily");
-
- RumRateLimitWindowType(String value) {
- super(value, allowedValues);
- }
-
- public static class RumRateLimitWindowTypeSerializer
- extends StdSerializer {
- public RumRateLimitWindowTypeSerializer(Class t) {
- super(t);
- }
-
- public RumRateLimitWindowTypeSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- RumRateLimitWindowType value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.value);
- }
- }
-
- @JsonCreator
- public static RumRateLimitWindowType fromValue(String value) {
- return new RumRateLimitWindowType(value);
- }
-}
diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_rate_limit.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_rate_limit.feature
deleted file mode 100644
index 90869ed1782..00000000000
--- a/src/test/resources/com/datadog/api/client/v2/api/rum_rate_limit.feature
+++ /dev/null
@@ -1,93 +0,0 @@
-@endpoint(rum-rate-limit) @endpoint(rum-rate-limit-v2)
-Feature: Rum Rate Limit
- Manage RUM rate limit configurations for your organization's RUM
- applications.
-
- Background:
- Given a valid "apiKeyAuth" key in the system
- And a valid "appKeyAuth" key in the system
- And an instance of "RumRateLimit" API
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Create or update a RUM rate limit configuration returns "Bad Request" response
- Given operation "UpdateRumRateLimitConfig" enabled
- And new "UpdateRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"adaptive": {"max_retention_rate": 0.5}, "custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "cd73a516-a481-4af5-8352-9b577465c77b", "type": "rum_rate_limit_config"}}
- When the request is sent
- Then the response status is 400 Bad Request
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Create or update a RUM rate limit configuration returns "Not Found" response
- Given operation "UpdateRumRateLimitConfig" enabled
- And new "UpdateRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"adaptive": {"max_retention_rate": 0.5}, "custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "cd73a516-a481-4af5-8352-9b577465c77b", "type": "rum_rate_limit_config"}}
- When the request is sent
- Then the response status is 404 Not Found
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Create or update a RUM rate limit configuration returns "OK" response
- Given operation "UpdateRumRateLimitConfig" enabled
- And new "UpdateRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"adaptive": {"max_retention_rate": 0.5}, "custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "cd73a516-a481-4af5-8352-9b577465c77b", "type": "rum_rate_limit_config"}}
- When the request is sent
- Then the response status is 200 OK
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Delete a RUM rate limit configuration returns "Bad Request" response
- Given operation "DeleteRumRateLimitConfig" enabled
- And new "DeleteRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 400 Bad Request
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Delete a RUM rate limit configuration returns "No Content" response
- Given operation "DeleteRumRateLimitConfig" enabled
- And new "DeleteRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 204 No Content
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Delete a RUM rate limit configuration returns "Not Found" response
- Given operation "DeleteRumRateLimitConfig" enabled
- And new "DeleteRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 404 Not Found
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Get a RUM rate limit configuration returns "Bad Request" response
- Given operation "GetRumRateLimitConfig" enabled
- And new "GetRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 400 Bad Request
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Get a RUM rate limit configuration returns "Not Found" response
- Given operation "GetRumRateLimitConfig" enabled
- And new "GetRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 404 Not Found
-
- @generated @skip @team:DataDog/rum-backend
- Scenario: Get a RUM rate limit configuration returns "OK" response
- Given operation "GetRumRateLimitConfig" enabled
- And new "GetRumRateLimitConfig" request
- And request contains "scope_type" parameter from "REPLACE.ME"
- And request contains "scope_id" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 200 OK
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 9903d959ffb..1060e48a484 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
@@ -7039,24 +7039,6 @@
"type": "idempotent"
}
},
- "DeleteRumRateLimitConfig": {
- "tag": "Rum Rate Limit",
- "undo": {
- "type": "idempotent"
- }
- },
- "GetRumRateLimitConfig": {
- "tag": "Rum Rate Limit",
- "undo": {
- "type": "safe"
- }
- },
- "UpdateRumRateLimitConfig": {
- "tag": "Rum Rate Limit",
- "undo": {
- "type": "idempotent"
- }
- },
"ListRUMEvents": {
"tag": "RUM",
"undo": {