From 7df3e24ed059109b5a8b12df9b75f18680d5b1dc Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 20 Mar 2026 14:18:34 +0000 Subject: [PATCH] Regenerate client from commit 7a3fc17 of spec repo --- .generator/schemas/v2/openapi.yaml | 14 +- .../client/v2/api/RestrictionPoliciesApi.java | 196 ++++++++++-------- ...nsitiveDataScannerProcessorActionHash.java | 6 +- ...erProcessorActionPartialRedactOptions.java | 4 +- ...taScannerProcessorActionRedactOptions.java | 3 +- ...lineSensitiveDataScannerProcessorRule.java | 12 +- ...itiveDataScannerProcessorScopeOptions.java | 4 +- 7 files changed, 131 insertions(+), 108 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 035a0b32780..14c86cc46f1 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1048,7 +1048,7 @@ components: type: string ResourceID: description: |- - Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`. + Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`, `security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`, `monitor`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`, `case-management-project`. example: "dashboard:abc-def-ghi" in: path name: resource_id @@ -44218,10 +44218,7 @@ components: action: $ref: "#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction" options: - description: |- - Optional settings for the hash action. When omitted or empty, matched sensitive data is - replaced with a deterministic hashed value that preserves structure for analytics while - protecting the original content. Reserved for future hash configuration (for example, algorithm or salt). + description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` `options`. type: object required: [action] type: object @@ -44252,7 +44249,7 @@ components: description: Controls how partial redaction is applied, including character count and direction. properties: characters: - description: Number of characters to leave visible from the start or end of the matched value; the rest are redacted. + description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` `characters`. example: 4 format: int64 type: integer @@ -44288,7 +44285,7 @@ components: description: Configuration for fully redacting sensitive data. properties: replace: - description: The string used to replace matched sensitive data (for example, "***" or "[REDACTED]"). + description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` `replace`. example: "***" type: string required: [replace] @@ -44398,6 +44395,7 @@ components: type: array required: - name + - tags - pattern - scope - on_match @@ -44458,7 +44456,7 @@ components: description: Fields to which the scope rule applies. properties: fields: - description: List of log attribute names (field paths) to which the scope applies. Only these fields are included in or excluded from pattern matching. + description: The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` `fields`. example: - "" items: diff --git a/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java b/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java index 39a0e5fc3ea..b4fa4913f1e 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java @@ -52,12 +52,14 @@ public void setApiClient(ApiClient apiClient) { * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @throws ApiException if fails to make API call */ public void deleteRestrictionPolicy(String resourceId) throws ApiException { @@ -71,12 +73,14 @@ public void deleteRestrictionPolicy(String resourceId) throws ApiException { * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @return CompletableFuture */ public CompletableFuture deleteRestrictionPolicyAsync(String resourceId) { @@ -92,12 +96,14 @@ public CompletableFuture deleteRestrictionPolicyAsync(String resourceId) { * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -154,12 +160,14 @@ public ApiResponse deleteRestrictionPolicyWithHttpInfo(String resourceId) * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> deleteRestrictionPolicyWithHttpInfoAsync( @@ -217,12 +225,14 @@ public CompletableFuture> deleteRestrictionPolicyWithHttpInfoA * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @return RestrictionPolicyResponse * @throws ApiException if fails to make API call */ @@ -237,12 +247,14 @@ public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @return CompletableFuture<RestrictionPolicyResponse> */ public CompletableFuture getRestrictionPolicyAsync(String resourceId) { @@ -258,12 +270,14 @@ public CompletableFuture getRestrictionPolicyAsync(St * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @return ApiResponse<RestrictionPolicyResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -320,12 +334,14 @@ public ApiResponse getRestrictionPolicyWithHttpInfo(S * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>> */ public CompletableFuture> @@ -402,12 +418,14 @@ public UpdateRestrictionPolicyOptionalParameters allowSelfLockout(Boolean allowS * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @param body Restriction policy payload (required) * @return RestrictionPolicyResponse * @throws ApiException if fails to make API call @@ -426,12 +444,14 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters()) * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @param body Restriction policy payload (required) * @return CompletableFuture<RestrictionPolicyResponse> */ @@ -452,12 +472,14 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters()) * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return RestrictionPolicyResponse @@ -478,12 +500,14 @@ public RestrictionPolicyResponse updateRestrictionPolicy( * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<RestrictionPolicyResponse> @@ -544,12 +568,14 @@ public CompletableFuture updateRestrictionPolicyAsync * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return ApiResponse<RestrictionPolicyResponse> @@ -622,12 +648,14 @@ public ApiResponse updateRestrictionPolicyWithHttpInf * * @param resourceId Identifier, formatted as type:id. Supported types: * dashboard, integration-service, integration-webhook, - * notebook, reference-table, security-rule, slo - * , workflow, app-builder-app, connection, - * connection-group, rum-application, cross-org-connection - * , spreadsheet, on-call-schedule, - * on-call-escalation-policy, on-call-team-routing-rules, - * logs-pipeline. (required) + * notebook, powerpack, reference-table, + * security-rule, slo, synthetics-global-variable, + * synthetics-test, synthetics-private-location, monitor, + * workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection, + * spreadsheet, on-call-schedule, on-call-escalation-policy + * , on-call-team-routing-rules, logs-pipeline, + * case-management-project. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>> diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionHash.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionHash.java index 59052b4a7dc..3968f93975d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionHash.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionHash.java @@ -74,10 +74,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorActionHash options(Obje } /** - * Optional settings for the hash action. When omitted or empty, matched sensitive data is - * replaced with a deterministic hashed value that preserves structure for analytics while - * protecting the original content. Reserved for future hash configuration (for example, algorithm - * or salt). + * The ObservabilityPipelineSensitiveDataScannerProcessorActionHash options + * . * * @return options */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions.java index f0d09d19c81..657b182e322 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions.java @@ -55,8 +55,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOpti } /** - * Number of characters to leave visible from the start or end of the matched value; the rest are - * redacted. + * The ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions + * characters. * * @return characters */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions.java index 0685e211460..3e0ad6654b0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions.java @@ -43,7 +43,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions rep } /** - * The string used to replace matched sensitive data (for example, "***" or "[REDACTED]"). + * The ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions + * replace. * * @return replace */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorRule.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorRule.java index f5c8c3eb72c..a9b3f4635b9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorRule.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorRule.java @@ -51,7 +51,7 @@ public class ObservabilityPipelineSensitiveDataScannerProcessorRule { private ObservabilityPipelineSensitiveDataScannerProcessorScope scope; public static final String JSON_PROPERTY_TAGS = "tags"; - private List tags = null; + private List tags = new ArrayList<>(); public ObservabilityPipelineSensitiveDataScannerProcessorRule() {} @@ -63,7 +63,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule( @JsonProperty(required = true, value = JSON_PROPERTY_PATTERN) ObservabilityPipelineSensitiveDataScannerProcessorPattern pattern, @JsonProperty(required = true, value = JSON_PROPERTY_SCOPE) - ObservabilityPipelineSensitiveDataScannerProcessorScope scope) { + ObservabilityPipelineSensitiveDataScannerProcessorScope scope, + @JsonProperty(required = true, value = JSON_PROPERTY_TAGS) List tags) { this.name = name; this.onMatch = onMatch; this.unparsed |= onMatch.unparsed; @@ -71,6 +72,7 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule( this.unparsed |= pattern.unparsed; this.scope = scope; this.unparsed |= scope.unparsed; + this.tags = tags; } public ObservabilityPipelineSensitiveDataScannerProcessorRule keywordOptions( @@ -190,9 +192,6 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule tags(List } public ObservabilityPipelineSensitiveDataScannerProcessorRule addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } this.tags.add(tagsItem); return this; } @@ -202,9 +201,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule addTagsItem(String * * @return tags */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTags() { return tags; } diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions.java index 3ee07235467..38dd5fa88db 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions.java @@ -51,8 +51,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions addFieldsI } /** - * List of log attribute names (field paths) to which the scope applies. Only these fields are - * included in or excluded from pattern matching. + * The ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions fields + * . * * @return fields */