From 8f14e05fe24828c91f2c51147cb0bb667c41f63c Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 11 Feb 2025 10:01:41 +0000 Subject: [PATCH] Regenerate client from commit b980d49f of spec repo --- .apigentools-info | 8 +- .generator/schemas/v2/openapi.yaml | 92 ++++++++++ ...eateSecurityMonitoringRule_1965169892.java | 76 ++++++++ .../api/client/v2/model/JobDefinition.java | 37 ++++ .../v2/model/SecurityMonitoringRuleCase.java | 43 ++++- .../SecurityMonitoringRuleCaseAction.java | 173 ++++++++++++++++++ ...curityMonitoringRuleCaseActionOptions.java | 138 ++++++++++++++ .../SecurityMonitoringRuleCaseActionType.java | 62 +++++++ .../SecurityMonitoringRuleCaseCreate.java | 44 ++++- .../SecurityMonitoringRuleUpdatePayload.java | 37 ++++ ...tyMonitoringStandardRuleCreatePayload.java | 39 ++++ ...SecurityMonitoringStandardRulePayload.java | 37 ++++ ...ecurityMonitoringStandardRuleResponse.java | 38 ++++ ...rityMonitoringStandardRuleTestPayload.java | 39 ++++ ...er_returns_User_created_response_test.json | 2 +- ...reate_a_user_returns_null_access_role.json | 2 +- ...ount_config_returns_Conflict_response.json | 2 +- ...nt_config_returns_No_Content_response.json | 2 +- ...unt_config_returns_Not_Found_response.json | 4 +- ...turns_AWS_External_ID_object_response.json | 2 +- ...g_returns_AWS_Account_object_response.json | 2 +- ...s_AWS_Namespaces_List_object_response.json | 2 +- ...WS_Logs_Services_List_object_response.json | 2 +- ...s_AWS_Namespaces_List_object_response.json | 2 +- ...g_returns_AWS_Account_object_response.json | 2 +- ...t_config_returns_Bad_Request_response.json | 2 +- ...unt_config_returns_Not_Found_response.json | 2 +- ...ive_case_returns_Bad_Request_response.json | 2 +- .../v2/Archive_case_returns_OK_response.json | 2 +- ...ign_case_returns_Bad_Request_response.json | 2 +- .../v2/Assign_case_returns_OK_response.json | 2 +- ..._a_historical_job_returns_OK_response.json | 2 +- ..._deletion_request_returns_OK_response.json | 2 +- ...te_Scanning_Group_returns_OK_response.json | 2 +- ...ing_Rule_returns_Bad_Request_response.json | 4 +- ...ate_Scanning_Rule_returns_OK_response.json | 4 +- ...cation_security_returns_OK_response.freeze | 1 + ...lication_security_returns_OK_response.json | 58 ++++++ ...integration_returns_Conflict_response.json | 2 +- ...ncident_type_returns_CREATED_response.json | 2 +- ...with_a_permission_returns_OK_response.json | 2 +- ..._deletion_request_returns_OK_response.json | 2 +- .../v2/Delete_App_returns_OK_response.json | 2 +- ...ete_Multiple_Apps_returns_OK_response.json | 2 +- ...te_Scanning_Group_returns_OK_response.json | 4 +- ...ete_Scanning_Rule_returns_OK_response.json | 4 +- ..._retention_filter_returns_OK_response.json | 2 +- ...tegration_returns_No_Content_response.json | 2 +- ...ntegration_returns_Not_Found_response.json | 4 +- ...turns_AWS_External_ID_object_response.json | 2 +- ...turns_AWS_External_ID_object_response.json | 2 +- .../v2/Get_App_returns_OK_response.json | 2 +- ..._retention_filter_returns_OK_response.json | 2 +- ...t_a_job_s_details_returns_OK_response.json | 2 +- ...D_returns_AWS_Account_object_response.json | 2 +- ...WS_Logs_Services_List_object_response.json | 2 +- ...details_of_a_case_returns_OK_response.json | 2 +- ...mission_to_a_role_returns_OK_response.json | 2 +- ...t_Scanning_Groups_returns_OK_response.json | 6 +- ...retention_filters_returns_OK_response.json | 2 +- ...s_AWS_Namespaces_List_object_response.json | 2 +- ...t_historical_jobs_returns_OK_response.json | 2 +- ...WS_Logs_Services_List_object_response.json | 2 +- ...s_AWS_Namespaces_List_object_response.json | 2 +- ...ssions_for_a_role_returns_OK_response.json | 2 +- .../List_permissions_returns_OK_response.json | 2 +- .../Publish_App_returns_Created_response.json | 2 +- ...r_Groups_returns_Bad_Request_response.json | 4 +- .../Reorder_Groups_returns_OK_response.json | 4 +- ...permission_returns_Not_found_response.json | 2 +- ...Revoke_permission_returns_OK_response.json | 2 +- ...l_job_returns_Status_created_response.json | 2 +- ...ive_case_returns_Bad_Request_response.json | 2 +- .../Unarchive_case_returns_OK_response.json | 2 +- ...ign_case_returns_Bad_Request_response.json | 2 +- .../v2/Unassign_case_returns_OK_response.json | 2 +- ...date_App_returns_Bad_Request_response.json | 2 +- .../v2/Update_App_returns_OK_response.json | 2 +- ...te_Scanning_Group_returns_OK_response.json | 4 +- ...ing_Rule_returns_Bad_Request_response.json | 4 +- ...ate_Scanning_Rule_returns_OK_response.json | 4 +- ...n_filter_returns_Bad_Request_response.json | 2 +- ...ion_filter_returns_Not_Found_response.json | 2 +- ..._retention_filter_returns_OK_response.json | 2 +- ..._filters_returns_Bad_Request_response.json | 2 +- ...on_filters_returns_Not_Found_response.json | 2 +- ...retention_filters_returns_OK_response.json | 2 +- ...e_a_role_returns_Bad_Request_response.json | 2 +- ...e_a_role_returns_Bad_Role_ID_response.json | 2 +- ...ate_a_role_returns_Not_found_response.json | 2 +- .../v2/Update_a_role_returns_OK_response.json | 2 +- ...n_returns_AWS_Account_object_response.json | 2 +- ...egration_returns_Bad_Request_response.json | 2 +- ...ntegration_returns_Not_Found_response.json | 2 +- ..._an_incident_type_returns_OK_response.json | 2 +- ...priority_returns_Bad_Request_response.json | 2 +- ...ate_case_priority_returns_OK_response.json | 2 +- ...e_status_returns_Bad_Request_response.json | 2 +- ...pdate_case_status_returns_OK_response.json | 2 +- .../client/v2/api/security_monitoring.feature | 10 + 100 files changed, 1020 insertions(+), 104 deletions(-) create mode 100644 examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseAction.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseActionOptions.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseActionType.java create mode 100644 src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.json diff --git a/.apigentools-info b/.apigentools-info index b8944c7c887..534e837773c 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-10 19:09:34.449930", - "spec_repo_commit": "824f78a1" + "regenerated": "2025-02-11 09:59:45.428513", + "spec_repo_commit": "b980d49f" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-10 19:09:34.468088", - "spec_repo_commit": "824f78a1" + "regenerated": "2025-02-11 09:59:45.443328", + "spec_repo_commit": "b980d49f" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 1cb9d8453bb..b0adf622a07 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -15657,6 +15657,15 @@ components: example: 1729843470000 format: int64 type: integer + groupSignalsBy: + description: Additional grouping to perform on top of the existing groups + in the query section. Must be a subset of the existing groups. + example: + - service + items: + description: Field to group by. + type: string + type: array index: description: Index used to load the data. example: cloud_siem @@ -24242,6 +24251,11 @@ components: SecurityMonitoringRuleCase: description: Case when signal is generated. properties: + actions: + description: Action to perform for each rule case. + items: + $ref: '#/components/schemas/SecurityMonitoringRuleCaseAction' + type: array condition: description: 'A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated @@ -24260,9 +24274,42 @@ components: status: $ref: '#/components/schemas/SecurityMonitoringRuleSeverity' type: object + SecurityMonitoringRuleCaseAction: + description: Action to perform when a signal is triggered. Only available for + Application Security rule type. + properties: + options: + $ref: '#/components/schemas/SecurityMonitoringRuleCaseActionOptions' + type: + $ref: '#/components/schemas/SecurityMonitoringRuleCaseActionType' + type: object + SecurityMonitoringRuleCaseActionOptions: + description: Options for the rule action + properties: + duration: + description: Duration of the action in seconds. 0 indicates no expiration. + example: 0 + format: int64 + minimum: 0 + type: integer + type: object + SecurityMonitoringRuleCaseActionType: + description: The action type. + enum: + - block_ip + - block_user + type: string + x-enum-varnames: + - BLOCK_IP + - BLOCK_USER SecurityMonitoringRuleCaseCreate: description: Case when signal is generated. properties: + actions: + description: Action to perform for each rule case. + items: + $ref: '#/components/schemas/SecurityMonitoringRuleCaseAction' + type: array condition: description: 'A case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated @@ -24724,6 +24771,15 @@ components: items: $ref: '#/components/schemas/SecurityMonitoringFilter' type: array + groupSignalsBy: + description: Additional grouping to perform on top of the existing groups + in the query section. Must be a subset of the existing groups. + example: + - service + items: + description: Field to group by. + type: string + type: array hasExtendedTitle: description: Whether the notifications include the triggering group-by values in their title. @@ -25429,6 +25485,15 @@ components: items: $ref: '#/components/schemas/SecurityMonitoringFilter' type: array + groupSignalsBy: + description: Additional grouping to perform on top of the existing groups + in the query section. Must be a subset of the existing groups. + example: + - service + items: + description: Field to group by. + type: string + type: array hasExtendedTitle: description: Whether the notifications include the triggering group-by values in their title. @@ -25501,6 +25566,15 @@ components: items: $ref: '#/components/schemas/SecurityMonitoringFilter' type: array + groupSignalsBy: + description: Additional grouping to perform on top of the existing groups + in the query section. Must be a subset of the existing groups. + example: + - service + items: + description: Field to group by. + type: string + type: array hasExtendedTitle: description: Whether the notifications include the triggering group-by values in their title. @@ -25642,6 +25716,15 @@ components: items: $ref: '#/components/schemas/SecurityMonitoringFilter' type: array + groupSignalsBy: + description: Additional grouping to perform on top of the existing groups + in the query section. Must be a subset of the existing groups. + example: + - service + items: + description: Field to group by. + type: string + type: array hasExtendedTitle: description: Whether the notifications include the triggering group-by values in their title. @@ -25719,6 +25802,15 @@ components: items: $ref: '#/components/schemas/SecurityMonitoringFilter' type: array + groupSignalsBy: + description: Additional grouping to perform on top of the existing groups + in the query section. Must be a subset of the existing groups. + example: + - service + items: + description: Field to group by. + type: string + type: array hasExtendedTitle: description: Whether the notifications include the triggering group-by values in their title. diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.java b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.java new file mode 100644 index 00000000000..5b2083afe26 --- /dev/null +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.java @@ -0,0 +1,76 @@ +// Create a detection rule with type 'application_security 'returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.SecurityMonitoringApi; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleCaseAction; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleCaseActionOptions; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleCaseActionType; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleCaseCreate; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleCreatePayload; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleDetectionMethod; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleEvaluationWindow; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleKeepAlive; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleMaxSignalDuration; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleOptions; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleQueryAggregation; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleResponse; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleSeverity; +import com.datadog.api.client.v2.model.SecurityMonitoringRuleTypeCreate; +import com.datadog.api.client.v2.model.SecurityMonitoringStandardRuleCreatePayload; +import com.datadog.api.client.v2.model.SecurityMonitoringStandardRuleQuery; +import java.util.Arrays; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); + + SecurityMonitoringRuleCreatePayload body = + new SecurityMonitoringRuleCreatePayload( + new SecurityMonitoringStandardRuleCreatePayload() + .type(SecurityMonitoringRuleTypeCreate.APPLICATION_SECURITY) + .name("Example-Security-Monitoring_appsec_rule") + .queries( + Collections.singletonList( + new SecurityMonitoringStandardRuleQuery() + .query("@appsec.security_activity:business_logic.users.login.failure") + .aggregation(SecurityMonitoringRuleQueryAggregation.COUNT) + .groupByFields(Arrays.asList("service", "@http.client_ip")))) + .cases( + Collections.singletonList( + new SecurityMonitoringRuleCaseCreate() + .name("") + .status(SecurityMonitoringRuleSeverity.INFO) + .condition("a > 100000") + .actions( + Collections.singletonList( + new SecurityMonitoringRuleCaseAction() + .type(SecurityMonitoringRuleCaseActionType.BLOCK_IP) + .options( + new SecurityMonitoringRuleCaseActionOptions() + .duration(900L)))))) + .options( + new SecurityMonitoringRuleOptions() + .keepAlive(SecurityMonitoringRuleKeepAlive.ONE_HOUR) + .maxSignalDuration(SecurityMonitoringRuleMaxSignalDuration.ONE_DAY) + .evaluationWindow(SecurityMonitoringRuleEvaluationWindow.FIFTEEN_MINUTES) + .detectionMethod(SecurityMonitoringRuleDetectionMethod.THRESHOLD)) + .isEnabled(true) + .message("Test rule") + .groupSignalsBy(Collections.singletonList("service"))); + + try { + SecurityMonitoringRuleResponse result = apiInstance.createSecurityMonitoringRule(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println( + "Exception when calling SecurityMonitoringApi#createSecurityMonitoringRule"); + 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/v2/model/JobDefinition.java b/src/main/java/com/datadog/api/client/v2/model/JobDefinition.java index f91a1e767ac..29057415d42 100644 --- a/src/main/java/com/datadog/api/client/v2/model/JobDefinition.java +++ b/src/main/java/com/datadog/api/client/v2/model/JobDefinition.java @@ -24,6 +24,7 @@ JobDefinition.JSON_PROPERTY_CALCULATED_FIELDS, JobDefinition.JSON_PROPERTY_CASES, JobDefinition.JSON_PROPERTY_FROM, + JobDefinition.JSON_PROPERTY_GROUP_SIGNALS_BY, JobDefinition.JSON_PROPERTY_INDEX, JobDefinition.JSON_PROPERTY_MESSAGE, JobDefinition.JSON_PROPERTY_NAME, @@ -48,6 +49,9 @@ public class JobDefinition { public static final String JSON_PROPERTY_FROM = "from"; private Long from; + public static final String JSON_PROPERTY_GROUP_SIGNALS_BY = "groupSignalsBy"; + private List groupSignalsBy = null; + public static final String JSON_PROPERTY_INDEX = "index"; private String index; @@ -182,6 +186,36 @@ public void setFrom(Long from) { this.from = from; } + public JobDefinition groupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + return this; + } + + public JobDefinition addGroupSignalsByItem(String groupSignalsByItem) { + if (this.groupSignalsBy == null) { + this.groupSignalsBy = new ArrayList<>(); + } + this.groupSignalsBy.add(groupSignalsByItem); + return this; + } + + /** + * Additional grouping to perform on top of the existing groups in the query section. Must be a + * subset of the existing groups. + * + * @return groupSignalsBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_SIGNALS_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getGroupSignalsBy() { + return groupSignalsBy; + } + + public void setGroupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + } + public JobDefinition index(String index) { this.index = index; return this; @@ -492,6 +526,7 @@ public boolean equals(Object o) { return Objects.equals(this.calculatedFields, jobDefinition.calculatedFields) && Objects.equals(this.cases, jobDefinition.cases) && Objects.equals(this.from, jobDefinition.from) + && Objects.equals(this.groupSignalsBy, jobDefinition.groupSignalsBy) && Objects.equals(this.index, jobDefinition.index) && Objects.equals(this.message, jobDefinition.message) && Objects.equals(this.name, jobDefinition.name) @@ -511,6 +546,7 @@ public int hashCode() { calculatedFields, cases, from, + groupSignalsBy, index, message, name, @@ -531,6 +567,7 @@ public String toString() { sb.append(" calculatedFields: ").append(toIndentedString(calculatedFields)).append("\n"); sb.append(" cases: ").append(toIndentedString(cases)).append("\n"); sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" groupSignalsBy: ").append(toIndentedString(groupSignalsBy)).append("\n"); sb.append(" index: ").append(toIndentedString(index)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java index ba004ae289a..7797826424b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCase.java @@ -20,6 +20,7 @@ /** Case when signal is generated. */ @JsonPropertyOrder({ + SecurityMonitoringRuleCase.JSON_PROPERTY_ACTIONS, SecurityMonitoringRuleCase.JSON_PROPERTY_CONDITION, SecurityMonitoringRuleCase.JSON_PROPERTY_NAME, SecurityMonitoringRuleCase.JSON_PROPERTY_NOTIFICATIONS, @@ -29,6 +30,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SecurityMonitoringRuleCase { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ACTIONS = "actions"; + private List actions = null; + public static final String JSON_PROPERTY_CONDITION = "condition"; private String condition; @@ -41,6 +45,39 @@ public class SecurityMonitoringRuleCase { public static final String JSON_PROPERTY_STATUS = "status"; private SecurityMonitoringRuleSeverity status; + public SecurityMonitoringRuleCase actions(List actions) { + this.actions = actions; + for (SecurityMonitoringRuleCaseAction item : actions) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SecurityMonitoringRuleCase addActionsItem(SecurityMonitoringRuleCaseAction actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + this.unparsed |= actionsItem.unparsed; + return this; + } + + /** + * Action to perform for each rule case. + * + * @return actions + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getActions() { + return actions; + } + + public void setActions(List actions) { + this.actions = actions; + } + public SecurityMonitoringRuleCase condition(String condition) { this.condition = condition; return this; @@ -195,7 +232,8 @@ public boolean equals(Object o) { return false; } SecurityMonitoringRuleCase securityMonitoringRuleCase = (SecurityMonitoringRuleCase) o; - return Objects.equals(this.condition, securityMonitoringRuleCase.condition) + return Objects.equals(this.actions, securityMonitoringRuleCase.actions) + && Objects.equals(this.condition, securityMonitoringRuleCase.condition) && Objects.equals(this.name, securityMonitoringRuleCase.name) && Objects.equals(this.notifications, securityMonitoringRuleCase.notifications) && Objects.equals(this.status, securityMonitoringRuleCase.status) @@ -205,13 +243,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(condition, name, notifications, status, additionalProperties); + return Objects.hash(actions, condition, name, notifications, status, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringRuleCase {\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" condition: ").append(toIndentedString(condition)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseAction.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseAction.java new file mode 100644 index 00000000000..6137f82945b --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseAction.java @@ -0,0 +1,173 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Action to perform when a signal is triggered. Only available for Application Security rule type. + */ +@JsonPropertyOrder({ + SecurityMonitoringRuleCaseAction.JSON_PROPERTY_OPTIONS, + SecurityMonitoringRuleCaseAction.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringRuleCaseAction { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_OPTIONS = "options"; + private SecurityMonitoringRuleCaseActionOptions options; + + public static final String JSON_PROPERTY_TYPE = "type"; + private SecurityMonitoringRuleCaseActionType type; + + public SecurityMonitoringRuleCaseAction options(SecurityMonitoringRuleCaseActionOptions options) { + this.options = options; + this.unparsed |= options.unparsed; + return this; + } + + /** + * Options for the rule action + * + * @return options + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SecurityMonitoringRuleCaseActionOptions getOptions() { + return options; + } + + public void setOptions(SecurityMonitoringRuleCaseActionOptions options) { + this.options = options; + } + + public SecurityMonitoringRuleCaseAction type(SecurityMonitoringRuleCaseActionType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * The action type. + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SecurityMonitoringRuleCaseActionType getType() { + return type; + } + + public void setType(SecurityMonitoringRuleCaseActionType 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 SecurityMonitoringRuleCaseAction + */ + @JsonAnySetter + public SecurityMonitoringRuleCaseAction 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 SecurityMonitoringRuleCaseAction object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringRuleCaseAction securityMonitoringRuleCaseAction = + (SecurityMonitoringRuleCaseAction) o; + return Objects.equals(this.options, securityMonitoringRuleCaseAction.options) + && Objects.equals(this.type, securityMonitoringRuleCaseAction.type) + && Objects.equals( + this.additionalProperties, securityMonitoringRuleCaseAction.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(options, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringRuleCaseAction {\n"); + sb.append(" options: ").append(toIndentedString(options)).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/SecurityMonitoringRuleCaseActionOptions.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseActionOptions.java new file mode 100644 index 00000000000..b23ff933674 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseActionOptions.java @@ -0,0 +1,138 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Options for the rule action */ +@JsonPropertyOrder({SecurityMonitoringRuleCaseActionOptions.JSON_PROPERTY_DURATION}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringRuleCaseActionOptions { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DURATION = "duration"; + private Long duration; + + public SecurityMonitoringRuleCaseActionOptions duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of the action in seconds. 0 indicates no expiration. minimum: 0 + * + * @return duration + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DURATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + /** + * 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 SecurityMonitoringRuleCaseActionOptions + */ + @JsonAnySetter + public SecurityMonitoringRuleCaseActionOptions 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 SecurityMonitoringRuleCaseActionOptions object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringRuleCaseActionOptions securityMonitoringRuleCaseActionOptions = + (SecurityMonitoringRuleCaseActionOptions) o; + return Objects.equals(this.duration, securityMonitoringRuleCaseActionOptions.duration) + && Objects.equals( + this.additionalProperties, + securityMonitoringRuleCaseActionOptions.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(duration, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringRuleCaseActionOptions {\n"); + sb.append(" duration: ").append(toIndentedString(duration)).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/SecurityMonitoringRuleCaseActionType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseActionType.java new file mode 100644 index 00000000000..704cbe550b5 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseActionType.java @@ -0,0 +1,62 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +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 type. */ +@JsonSerialize( + using = + SecurityMonitoringRuleCaseActionType.SecurityMonitoringRuleCaseActionTypeSerializer.class) +public class SecurityMonitoringRuleCaseActionType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("block_ip", "block_user")); + + public static final SecurityMonitoringRuleCaseActionType BLOCK_IP = + new SecurityMonitoringRuleCaseActionType("block_ip"); + public static final SecurityMonitoringRuleCaseActionType BLOCK_USER = + new SecurityMonitoringRuleCaseActionType("block_user"); + + SecurityMonitoringRuleCaseActionType(String value) { + super(value, allowedValues); + } + + public static class SecurityMonitoringRuleCaseActionTypeSerializer + extends StdSerializer { + public SecurityMonitoringRuleCaseActionTypeSerializer( + Class t) { + super(t); + } + + public SecurityMonitoringRuleCaseActionTypeSerializer() { + this(null); + } + + @Override + public void serialize( + SecurityMonitoringRuleCaseActionType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static SecurityMonitoringRuleCaseActionType fromValue(String value) { + return new SecurityMonitoringRuleCaseActionType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java index 41f52793a8f..3216360dac7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleCaseCreate.java @@ -21,6 +21,7 @@ /** Case when signal is generated. */ @JsonPropertyOrder({ + SecurityMonitoringRuleCaseCreate.JSON_PROPERTY_ACTIONS, SecurityMonitoringRuleCaseCreate.JSON_PROPERTY_CONDITION, SecurityMonitoringRuleCaseCreate.JSON_PROPERTY_NAME, SecurityMonitoringRuleCaseCreate.JSON_PROPERTY_NOTIFICATIONS, @@ -30,6 +31,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SecurityMonitoringRuleCaseCreate { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ACTIONS = "actions"; + private List actions = null; + public static final String JSON_PROPERTY_CONDITION = "condition"; private String condition; @@ -52,6 +56,40 @@ public SecurityMonitoringRuleCaseCreate( this.unparsed |= !status.isValid(); } + public SecurityMonitoringRuleCaseCreate actions(List actions) { + this.actions = actions; + for (SecurityMonitoringRuleCaseAction item : actions) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SecurityMonitoringRuleCaseCreate addActionsItem( + SecurityMonitoringRuleCaseAction actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + this.unparsed |= actionsItem.unparsed; + return this; + } + + /** + * Action to perform for each rule case. + * + * @return actions + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getActions() { + return actions; + } + + public void setActions(List actions) { + this.actions = actions; + } + public SecurityMonitoringRuleCaseCreate condition(String condition) { this.condition = condition; return this; @@ -206,7 +244,8 @@ public boolean equals(Object o) { } SecurityMonitoringRuleCaseCreate securityMonitoringRuleCaseCreate = (SecurityMonitoringRuleCaseCreate) o; - return Objects.equals(this.condition, securityMonitoringRuleCaseCreate.condition) + return Objects.equals(this.actions, securityMonitoringRuleCaseCreate.actions) + && Objects.equals(this.condition, securityMonitoringRuleCaseCreate.condition) && Objects.equals(this.name, securityMonitoringRuleCaseCreate.name) && Objects.equals(this.notifications, securityMonitoringRuleCaseCreate.notifications) && Objects.equals(this.status, securityMonitoringRuleCaseCreate.status) @@ -216,13 +255,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(condition, name, notifications, status, additionalProperties); + return Objects.hash(actions, condition, name, notifications, status, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityMonitoringRuleCaseCreate {\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" condition: ").append(toIndentedString(condition)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java index ce0c9545ab1..0d660c9b825 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringRuleUpdatePayload.java @@ -23,6 +23,7 @@ SecurityMonitoringRuleUpdatePayload.JSON_PROPERTY_CASES, SecurityMonitoringRuleUpdatePayload.JSON_PROPERTY_COMPLIANCE_SIGNAL_OPTIONS, SecurityMonitoringRuleUpdatePayload.JSON_PROPERTY_FILTERS, + SecurityMonitoringRuleUpdatePayload.JSON_PROPERTY_GROUP_SIGNALS_BY, SecurityMonitoringRuleUpdatePayload.JSON_PROPERTY_HAS_EXTENDED_TITLE, SecurityMonitoringRuleUpdatePayload.JSON_PROPERTY_IS_ENABLED, SecurityMonitoringRuleUpdatePayload.JSON_PROPERTY_MESSAGE, @@ -47,6 +48,9 @@ public class SecurityMonitoringRuleUpdatePayload { public static final String JSON_PROPERTY_FILTERS = "filters"; private List filters = null; + public static final String JSON_PROPERTY_GROUP_SIGNALS_BY = "groupSignalsBy"; + private List groupSignalsBy = null; + public static final String JSON_PROPERTY_HAS_EXTENDED_TITLE = "hasExtendedTitle"; private Boolean hasExtendedTitle; @@ -168,6 +172,36 @@ public void setFilters(List filters) { this.filters = filters; } + public SecurityMonitoringRuleUpdatePayload groupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + return this; + } + + public SecurityMonitoringRuleUpdatePayload addGroupSignalsByItem(String groupSignalsByItem) { + if (this.groupSignalsBy == null) { + this.groupSignalsBy = new ArrayList<>(); + } + this.groupSignalsBy.add(groupSignalsByItem); + return this; + } + + /** + * Additional grouping to perform on top of the existing groups in the query section. Must be a + * subset of the existing groups. + * + * @return groupSignalsBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_SIGNALS_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getGroupSignalsBy() { + return groupSignalsBy; + } + + public void setGroupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + } + public SecurityMonitoringRuleUpdatePayload hasExtendedTitle(Boolean hasExtendedTitle) { this.hasExtendedTitle = hasExtendedTitle; return this; @@ -490,6 +524,7 @@ public boolean equals(Object o) { this.complianceSignalOptions, securityMonitoringRuleUpdatePayload.complianceSignalOptions) && Objects.equals(this.filters, securityMonitoringRuleUpdatePayload.filters) + && Objects.equals(this.groupSignalsBy, securityMonitoringRuleUpdatePayload.groupSignalsBy) && Objects.equals( this.hasExtendedTitle, securityMonitoringRuleUpdatePayload.hasExtendedTitle) && Objects.equals(this.isEnabled, securityMonitoringRuleUpdatePayload.isEnabled) @@ -511,6 +546,7 @@ public int hashCode() { cases, complianceSignalOptions, filters, + groupSignalsBy, hasExtendedTitle, isEnabled, message, @@ -533,6 +569,7 @@ public String toString() { .append(toIndentedString(complianceSignalOptions)) .append("\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" groupSignalsBy: ").append(toIndentedString(groupSignalsBy)).append("\n"); sb.append(" hasExtendedTitle: ").append(toIndentedString(hasExtendedTitle)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java index 3663b123ec9..d19be324bee 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleCreatePayload.java @@ -23,6 +23,7 @@ @JsonPropertyOrder({ SecurityMonitoringStandardRuleCreatePayload.JSON_PROPERTY_CASES, SecurityMonitoringStandardRuleCreatePayload.JSON_PROPERTY_FILTERS, + SecurityMonitoringStandardRuleCreatePayload.JSON_PROPERTY_GROUP_SIGNALS_BY, SecurityMonitoringStandardRuleCreatePayload.JSON_PROPERTY_HAS_EXTENDED_TITLE, SecurityMonitoringStandardRuleCreatePayload.JSON_PROPERTY_IS_ENABLED, SecurityMonitoringStandardRuleCreatePayload.JSON_PROPERTY_MESSAGE, @@ -44,6 +45,9 @@ public class SecurityMonitoringStandardRuleCreatePayload { public static final String JSON_PROPERTY_FILTERS = "filters"; private List filters = null; + public static final String JSON_PROPERTY_GROUP_SIGNALS_BY = "groupSignalsBy"; + private List groupSignalsBy = null; + public static final String JSON_PROPERTY_HAS_EXTENDED_TITLE = "hasExtendedTitle"; private Boolean hasExtendedTitle; @@ -163,6 +167,37 @@ public void setFilters(List filters) { this.filters = filters; } + public SecurityMonitoringStandardRuleCreatePayload groupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + return this; + } + + public SecurityMonitoringStandardRuleCreatePayload addGroupSignalsByItem( + String groupSignalsByItem) { + if (this.groupSignalsBy == null) { + this.groupSignalsBy = new ArrayList<>(); + } + this.groupSignalsBy.add(groupSignalsByItem); + return this; + } + + /** + * Additional grouping to perform on top of the existing groups in the query section. Must be a + * subset of the existing groups. + * + * @return groupSignalsBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_SIGNALS_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getGroupSignalsBy() { + return groupSignalsBy; + } + + public void setGroupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + } + public SecurityMonitoringStandardRuleCreatePayload hasExtendedTitle(Boolean hasExtendedTitle) { this.hasExtendedTitle = hasExtendedTitle; return this; @@ -481,6 +516,8 @@ public boolean equals(Object o) { (SecurityMonitoringStandardRuleCreatePayload) o; return Objects.equals(this.cases, securityMonitoringStandardRuleCreatePayload.cases) && Objects.equals(this.filters, securityMonitoringStandardRuleCreatePayload.filters) + && Objects.equals( + this.groupSignalsBy, securityMonitoringStandardRuleCreatePayload.groupSignalsBy) && Objects.equals( this.hasExtendedTitle, securityMonitoringStandardRuleCreatePayload.hasExtendedTitle) && Objects.equals(this.isEnabled, securityMonitoringStandardRuleCreatePayload.isEnabled) @@ -504,6 +541,7 @@ public int hashCode() { return Objects.hash( cases, filters, + groupSignalsBy, hasExtendedTitle, isEnabled, message, @@ -523,6 +561,7 @@ public String toString() { sb.append("class SecurityMonitoringStandardRuleCreatePayload {\n"); sb.append(" cases: ").append(toIndentedString(cases)).append("\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" groupSignalsBy: ").append(toIndentedString(groupSignalsBy)).append("\n"); sb.append(" hasExtendedTitle: ").append(toIndentedString(hasExtendedTitle)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRulePayload.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRulePayload.java index 0aba4152777..06eb67af181 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRulePayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRulePayload.java @@ -23,6 +23,7 @@ @JsonPropertyOrder({ SecurityMonitoringStandardRulePayload.JSON_PROPERTY_CASES, SecurityMonitoringStandardRulePayload.JSON_PROPERTY_FILTERS, + SecurityMonitoringStandardRulePayload.JSON_PROPERTY_GROUP_SIGNALS_BY, SecurityMonitoringStandardRulePayload.JSON_PROPERTY_HAS_EXTENDED_TITLE, SecurityMonitoringStandardRulePayload.JSON_PROPERTY_IS_ENABLED, SecurityMonitoringStandardRulePayload.JSON_PROPERTY_MESSAGE, @@ -44,6 +45,9 @@ public class SecurityMonitoringStandardRulePayload { public static final String JSON_PROPERTY_FILTERS = "filters"; private List filters = null; + public static final String JSON_PROPERTY_GROUP_SIGNALS_BY = "groupSignalsBy"; + private List groupSignalsBy = null; + public static final String JSON_PROPERTY_HAS_EXTENDED_TITLE = "hasExtendedTitle"; private Boolean hasExtendedTitle; @@ -161,6 +165,36 @@ public void setFilters(List filters) { this.filters = filters; } + public SecurityMonitoringStandardRulePayload groupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + return this; + } + + public SecurityMonitoringStandardRulePayload addGroupSignalsByItem(String groupSignalsByItem) { + if (this.groupSignalsBy == null) { + this.groupSignalsBy = new ArrayList<>(); + } + this.groupSignalsBy.add(groupSignalsByItem); + return this; + } + + /** + * Additional grouping to perform on top of the existing groups in the query section. Must be a + * subset of the existing groups. + * + * @return groupSignalsBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_SIGNALS_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getGroupSignalsBy() { + return groupSignalsBy; + } + + public void setGroupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + } + public SecurityMonitoringStandardRulePayload hasExtendedTitle(Boolean hasExtendedTitle) { this.hasExtendedTitle = hasExtendedTitle; return this; @@ -477,6 +511,7 @@ public boolean equals(Object o) { (SecurityMonitoringStandardRulePayload) o; return Objects.equals(this.cases, securityMonitoringStandardRulePayload.cases) && Objects.equals(this.filters, securityMonitoringStandardRulePayload.filters) + && Objects.equals(this.groupSignalsBy, securityMonitoringStandardRulePayload.groupSignalsBy) && Objects.equals( this.hasExtendedTitle, securityMonitoringStandardRulePayload.hasExtendedTitle) && Objects.equals(this.isEnabled, securityMonitoringStandardRulePayload.isEnabled) @@ -499,6 +534,7 @@ public int hashCode() { return Objects.hash( cases, filters, + groupSignalsBy, hasExtendedTitle, isEnabled, message, @@ -518,6 +554,7 @@ public String toString() { sb.append("class SecurityMonitoringStandardRulePayload {\n"); sb.append(" cases: ").append(toIndentedString(cases)).append("\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" groupSignalsBy: ").append(toIndentedString(groupSignalsBy)).append("\n"); sb.append(" hasExtendedTitle: ").append(toIndentedString(hasExtendedTitle)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java index 379c063d57a..c35f915c4a6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleResponse.java @@ -27,6 +27,7 @@ SecurityMonitoringStandardRuleResponse.JSON_PROPERTY_DEFAULT_TAGS, SecurityMonitoringStandardRuleResponse.JSON_PROPERTY_DEPRECATION_DATE, SecurityMonitoringStandardRuleResponse.JSON_PROPERTY_FILTERS, + SecurityMonitoringStandardRuleResponse.JSON_PROPERTY_GROUP_SIGNALS_BY, SecurityMonitoringStandardRuleResponse.JSON_PROPERTY_HAS_EXTENDED_TITLE, SecurityMonitoringStandardRuleResponse.JSON_PROPERTY_ID, SecurityMonitoringStandardRuleResponse.JSON_PROPERTY_IS_DEFAULT, @@ -69,6 +70,9 @@ public class SecurityMonitoringStandardRuleResponse { public static final String JSON_PROPERTY_FILTERS = "filters"; private List filters = null; + public static final String JSON_PROPERTY_GROUP_SIGNALS_BY = "groupSignalsBy"; + private List groupSignalsBy = null; + public static final String JSON_PROPERTY_HAS_EXTENDED_TITLE = "hasExtendedTitle"; private Boolean hasExtendedTitle; @@ -301,6 +305,36 @@ public void setFilters(List filters) { this.filters = filters; } + public SecurityMonitoringStandardRuleResponse groupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + return this; + } + + public SecurityMonitoringStandardRuleResponse addGroupSignalsByItem(String groupSignalsByItem) { + if (this.groupSignalsBy == null) { + this.groupSignalsBy = new ArrayList<>(); + } + this.groupSignalsBy.add(groupSignalsByItem); + return this; + } + + /** + * Additional grouping to perform on top of the existing groups in the query section. Must be a + * subset of the existing groups. + * + * @return groupSignalsBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_SIGNALS_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getGroupSignalsBy() { + return groupSignalsBy; + } + + public void setGroupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + } + public SecurityMonitoringStandardRuleResponse hasExtendedTitle(Boolean hasExtendedTitle) { this.hasExtendedTitle = hasExtendedTitle; return this; @@ -760,6 +794,8 @@ public boolean equals(Object o) { && Objects.equals( this.deprecationDate, securityMonitoringStandardRuleResponse.deprecationDate) && Objects.equals(this.filters, securityMonitoringStandardRuleResponse.filters) + && Objects.equals( + this.groupSignalsBy, securityMonitoringStandardRuleResponse.groupSignalsBy) && Objects.equals( this.hasExtendedTitle, securityMonitoringStandardRuleResponse.hasExtendedTitle) && Objects.equals(this.id, securityMonitoringStandardRuleResponse.id) @@ -794,6 +830,7 @@ public int hashCode() { defaultTags, deprecationDate, filters, + groupSignalsBy, hasExtendedTitle, id, isDefault, @@ -826,6 +863,7 @@ public String toString() { sb.append(" defaultTags: ").append(toIndentedString(defaultTags)).append("\n"); sb.append(" deprecationDate: ").append(toIndentedString(deprecationDate)).append("\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" groupSignalsBy: ").append(toIndentedString(groupSignalsBy)).append("\n"); sb.append(" hasExtendedTitle: ").append(toIndentedString(hasExtendedTitle)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleTestPayload.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleTestPayload.java index 1a814912da2..d0bab74404b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleTestPayload.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleTestPayload.java @@ -23,6 +23,7 @@ @JsonPropertyOrder({ SecurityMonitoringStandardRuleTestPayload.JSON_PROPERTY_CASES, SecurityMonitoringStandardRuleTestPayload.JSON_PROPERTY_FILTERS, + SecurityMonitoringStandardRuleTestPayload.JSON_PROPERTY_GROUP_SIGNALS_BY, SecurityMonitoringStandardRuleTestPayload.JSON_PROPERTY_HAS_EXTENDED_TITLE, SecurityMonitoringStandardRuleTestPayload.JSON_PROPERTY_IS_ENABLED, SecurityMonitoringStandardRuleTestPayload.JSON_PROPERTY_MESSAGE, @@ -44,6 +45,9 @@ public class SecurityMonitoringStandardRuleTestPayload { public static final String JSON_PROPERTY_FILTERS = "filters"; private List filters = null; + public static final String JSON_PROPERTY_GROUP_SIGNALS_BY = "groupSignalsBy"; + private List groupSignalsBy = null; + public static final String JSON_PROPERTY_HAS_EXTENDED_TITLE = "hasExtendedTitle"; private Boolean hasExtendedTitle; @@ -162,6 +166,37 @@ public void setFilters(List filters) { this.filters = filters; } + public SecurityMonitoringStandardRuleTestPayload groupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + return this; + } + + public SecurityMonitoringStandardRuleTestPayload addGroupSignalsByItem( + String groupSignalsByItem) { + if (this.groupSignalsBy == null) { + this.groupSignalsBy = new ArrayList<>(); + } + this.groupSignalsBy.add(groupSignalsByItem); + return this; + } + + /** + * Additional grouping to perform on top of the existing groups in the query section. Must be a + * subset of the existing groups. + * + * @return groupSignalsBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_SIGNALS_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getGroupSignalsBy() { + return groupSignalsBy; + } + + public void setGroupSignalsBy(List groupSignalsBy) { + this.groupSignalsBy = groupSignalsBy; + } + public SecurityMonitoringStandardRuleTestPayload hasExtendedTitle(Boolean hasExtendedTitle) { this.hasExtendedTitle = hasExtendedTitle; return this; @@ -478,6 +513,8 @@ public boolean equals(Object o) { (SecurityMonitoringStandardRuleTestPayload) o; return Objects.equals(this.cases, securityMonitoringStandardRuleTestPayload.cases) && Objects.equals(this.filters, securityMonitoringStandardRuleTestPayload.filters) + && Objects.equals( + this.groupSignalsBy, securityMonitoringStandardRuleTestPayload.groupSignalsBy) && Objects.equals( this.hasExtendedTitle, securityMonitoringStandardRuleTestPayload.hasExtendedTitle) && Objects.equals(this.isEnabled, securityMonitoringStandardRuleTestPayload.isEnabled) @@ -501,6 +538,7 @@ public int hashCode() { return Objects.hash( cases, filters, + groupSignalsBy, hasExtendedTitle, isEnabled, message, @@ -520,6 +558,7 @@ public String toString() { sb.append("class SecurityMonitoringStandardRuleTestPayload {\n"); sb.append(" cases: ").append(toIndentedString(cases)).append("\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" groupSignalsBy: ").append(toIndentedString(groupSignalsBy)).append("\n"); sb.append(" hasExtendedTitle: ").append(toIndentedString(hasExtendedTitle)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/src/test/resources/cassettes/features/v1/Create_a_user_returns_User_created_response_test.json b/src/test/resources/cassettes/features/v1/Create_a_user_returns_User_created_response_test.json index 42def371a51..b676df880e6 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_user_returns_User_created_response_test.json +++ b/src/test/resources/cassettes/features/v1/Create_a_user_returns_User_created_response_test.json @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "af617072-2860-ba27-e045-b00c8baf0187" + "id": "af617072-2860-ba27-e045-b00c8baf0188" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_user_returns_null_access_role.json b/src/test/resources/cassettes/features/v1/Create_a_user_returns_null_access_role.json index 5a17eb5f03a..e5b3fe6bcf6 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_user_returns_null_access_role.json +++ b/src/test/resources/cassettes/features/v1/Create_a_user_returns_null_access_role.json @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "af617072-2860-ba27-e045-b00c8baf0188" + "id": "af617072-2860-ba27-e045-b00c8baf0187" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_Conflict_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_Conflict_response.json index c271d91c166..8b502f67b92 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_Conflict_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_Conflict_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eea" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eeb" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_No_Content_response.json index cf63593c8d1..56bdf3b041a 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9ee9" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eee" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Not_Found_response.json index 4c3eb8f99c4..7c4ece93315 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Not_Found_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eec" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eed" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2123e3-6fb5-0f90-fe98-365e086c9c6e" + "id": "ab2123e3-6fb5-0f90-fe98-365e086c9c6f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Generate_new_external_ID_returns_AWS_External_ID_object_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Generate_new_external_ID_returns_AWS_External_ID_object_response.json index 7bf88c684fb..efb480e06b4 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Generate_new_external_ID_returns_AWS_External_ID_object_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Generate_new_external_ID_returns_AWS_External_ID_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2ce" + "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cc" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_AWS_Account_object_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_AWS_Account_object_response.json index f2248371931..bb9830f6a8c 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_AWS_Account_object_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_AWS_Account_object_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eee" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9ee9" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_List_available_namespaces_returns_AWS_Namespaces_List_object_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_List_available_namespaces_returns_AWS_Namespaces_List_object_response.json index 2e4479a46a7..994e56ed9eb 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_List_available_namespaces_returns_AWS_Namespaces_List_object_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_List_available_namespaces_returns_AWS_Namespaces_List_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d10" + "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d11" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_List_log_services_returns_AWS_Logs_Services_List_object_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_List_log_services_returns_AWS_Logs_Services_List_object_response.json index f469a5cda1f..266b281e690 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_List_log_services_returns_AWS_Logs_Services_List_object_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_List_log_services_returns_AWS_Logs_Services_List_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "03c3c0d9-a62f-5ac6-398b-e22a05d14d79" + "id": "03c3c0d9-a62f-5ac6-398b-e22a05d14d7a" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_List_namespaces_returns_AWS_Namespaces_List_object_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_List_namespaces_returns_AWS_Namespaces_List_object_response.json index 7711ea26b7b..96ea2f1d661 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_List_namespaces_returns_AWS_Namespaces_List_object_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_List_namespaces_returns_AWS_Namespaces_List_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0e" + "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0f" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_AWS_Account_object_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_AWS_Account_object_response.json index 5be48f564e3..520c88368e3 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_AWS_Account_object_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_AWS_Account_object_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eeb" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eec" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Bad_Request_response.json index 8fcc5731aee..594ead3b0a2 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eed" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eea" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Not_Found_response.json index cb351a5a3b8..2cad4645519 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Patch_account_config_returns_Not_Found_response.json @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "6796bfb2-5496-6f6a-d702-4bc629b25991" + "id": "6796bfb2-5496-6f6a-d702-4bc629b25992" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json index d569331fc1e..ffce7b80afa 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8d" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a97" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json index b2f56bf9dd7..dbc24356eac 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a99" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a98" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json index b8fc6d4a6de..02df6bbc6d7 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a98" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a95" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json index 8665d61a91c..f37d83f9c9b 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a90" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Cancel_a_historical_job_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Cancel_a_historical_job_returns_OK_response.json index c86c865d392..73b6c147c8c 100644 --- a/src/test/resources/cassettes/features/v2/Cancel_a_historical_job_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Cancel_a_historical_job_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6bb82102-e994-f0d1-ee96-e1e3f1d81000" + "id": "6bb82102-e994-f0d1-ee96-e1e3f1d80ffd" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Cancels_a_data_deletion_request_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Cancels_a_data_deletion_request_returns_OK_response.json index 0b99dd1bd72..94ffd01c024 100644 --- a/src/test/resources/cassettes/features/v2/Cancels_a_data_deletion_request_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Cancels_a_data_deletion_request_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "516e2b97-25f6-b08c-4d4a-1da22948b32e" + "id": "516e2b97-25f6-b08c-4d4a-1da22948b330" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json index 4f55fd48470..31da0312ba7 100644 --- a/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e80" + "id": "01611a93-5e74-0630-3c51-f707c3b51e79" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json index fc22ccca876..945fea90a6b 100644 --- a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e82" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7d" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed160" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15b" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json index 3240ae69a7c..78115de3e31 100644 --- a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e83" + "id": "01611a93-5e74-0630-3c51-f707c3b51e81" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed161" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.freeze new file mode 100644 index 00000000000..7a935c1425b --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.freeze @@ -0,0 +1 @@ +2025-02-06T16:50:39.787Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.json new file mode 100644 index 00000000000..19ca3f7ec27 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Create_a_detection_rule_with_type_application_security_returns_OK_response.json @@ -0,0 +1,58 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"cases\":[{\"actions\":[{\"options\":{\"duration\":900},\"type\":\"block_ip\"}],\"condition\":\"a > 100000\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"groupSignalsBy\":[\"service\"],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Create_a_detection_rule_with_type_application_security_returns_OK_response-1738860639_appsec_rule\",\"options\":{\"detectionMethod\":\"threshold\",\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[\"service\",\"@http.client_ip\"],\"query\":\"@appsec.security_activity:business_logic.users.login.failure\"}],\"tags\":[],\"type\":\"application_security\"}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/security_monitoring/rules", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"name\":\"Test-Create_a_detection_rule_with_type_application_security_returns_OK_response-1738860639_appsec_rule\",\"createdAt\":1738860640426,\"isDefault\":false,\"isPartner\":false,\"isEnabled\":true,\"isBeta\":false,\"isDeleted\":false,\"isDeprecated\":false,\"queries\":[{\"query\":\"@appsec.security_activity:business_logic.users.login.failure\",\"groupByFields\":[\"service\",\"@http.client_ip\"],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"app_sec_spans\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"cases\":[{\"name\":\"\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 100000\",\"actions\":[{\"type\":\"block_ip\",\"options\":{\"duration\":900}}]}],\"message\":\"Test rule\",\"tags\":[],\"hasExtendedTitle\":false,\"type\":\"application_security\",\"filters\":[],\"version\":1,\"id\":\"rfn-h2v-udr\",\"blocking\":true,\"groupSignalsBy\":[\"service\"],\"casesActions\":[[{\"type\":\"block_ip\",\"options\":{\"duration\":900}}]],\"dependencies\":[\"business_logic.users.login.failure\"],\"metadata\":{\"entities\":null,\"sources\":null},\"creator\":{\"handle\":\"\",\"name\":\"\"},\"updater\":{\"handle\":\"\",\"name\":\"\"}}", + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "e25ba2dd-2cd8-54ae-985a-97cf9b520975" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/security_monitoring/rules/rfn-h2v-udr", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"status\":\"404\",\"title\":\"Not Found\"}", + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "statusCode": 404, + "reasonPhrase": "Not Found" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "d0c7ee9e-7178-f2b7-bb6a-b84e899effed" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_an_AWS_integration_returns_Conflict_response.json b/src/test/resources/cassettes/features/v2/Create_an_AWS_integration_returns_Conflict_response.json index 7c10d314d40..3756dc5e601 100644 --- a/src/test/resources/cassettes/features/v2/Create_an_AWS_integration_returns_Conflict_response.json +++ b/src/test/resources/cassettes/features/v2/Create_an_AWS_integration_returns_Conflict_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "cd59362c-7df2-d349-9880-5b5536151a0a" + "id": "cd59362c-7df2-d349-9880-5b5536151a0b" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_an_incident_type_returns_CREATED_response.json b/src/test/resources/cassettes/features/v2/Create_an_incident_type_returns_CREATED_response.json index 71e89162830..e8d8aa376d6 100644 --- a/src/test/resources/cassettes/features/v2/Create_an_incident_type_returns_CREATED_response.json +++ b/src/test/resources/cassettes/features/v2/Create_an_incident_type_returns_CREATED_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd3" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd1" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_role_with_a_permission_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_role_with_a_permission_returns_OK_response.json index a950d925a7b..c202d08fc66 100644 --- a/src/test/resources/cassettes/features/v2/Create_role_with_a_permission_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_role_with_a_permission_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216f" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Creates_a_data_deletion_request_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Creates_a_data_deletion_request_returns_OK_response.json index c12abc0c362..8155c3aeded 100644 --- a/src/test/resources/cassettes/features/v2/Creates_a_data_deletion_request_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Creates_a_data_deletion_request_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "516e2b97-25f6-b08c-4d4a-1da22948b330" + "id": "516e2b97-25f6-b08c-4d4a-1da22948b32e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_App_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_App_returns_OK_response.json index e0d3fb8de28..649092e3fca 100644 --- a/src/test/resources/cassettes/features/v2/Delete_App_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_App_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b8e7d077-8c77-c831-844b-014fb6c12fac" + "id": "b8e7d077-8c77-c831-844b-014fb6c12fa9" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_Multiple_Apps_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_Multiple_Apps_returns_OK_response.json index 385085fe427..6b38f44e69b 100644 --- a/src/test/resources/cassettes/features/v2/Delete_Multiple_Apps_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_Multiple_Apps_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b8e7d077-8c77-c831-844b-014fb6c12faa" + "id": "b8e7d077-8c77-c831-844b-014fb6c12fa8" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_Scanning_Group_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_Scanning_Group_returns_OK_response.json index bb5ecdafa10..bd84fafc3cc 100644 --- a/src/test/resources/cassettes/features/v2/Delete_Scanning_Group_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_Scanning_Group_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7f" + "id": "01611a93-5e74-0630-3c51-f707c3b51e82" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15e" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed160" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json index 78c22623409..1f3fb9b0ccb 100644 --- a/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e81" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7c" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15f" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15a" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_retention_filter_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_retention_filter_returns_OK_response.json index fee39ffa432..0d7a178583b 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_retention_filter_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_retention_filter_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069b" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0698" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_No_Content_response.json index c01678d31f1..e060b9aec6b 100644 --- a/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "cd59362c-7df2-d349-9880-5b5536151a09" + "id": "cd59362c-7df2-d349-9880-5b5536151a08" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Not_Found_response.json index b6b0aa30336..05cea677503 100644 --- a/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Not_Found_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "cd59362c-7df2-d349-9880-5b5536151a07" + "id": "cd59362c-7df2-d349-9880-5b5536151a06" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2123e3-6fb5-0f90-fe98-365e086c9c6f" + "id": "ab2123e3-6fb5-0f90-fe98-365e086c9c6e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Generate_a_new_external_ID_returns_AWS_External_ID_object_response.json b/src/test/resources/cassettes/features/v2/Generate_a_new_external_ID_returns_AWS_External_ID_object_response.json index e050d301c9d..77b1c5f9c48 100644 --- a/src/test/resources/cassettes/features/v2/Generate_a_new_external_ID_returns_AWS_External_ID_object_response.json +++ b/src/test/resources/cassettes/features/v2/Generate_a_new_external_ID_returns_AWS_External_ID_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cd" + "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2ce" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Generate_new_external_ID_returns_AWS_External_ID_object_response.json b/src/test/resources/cassettes/features/v2/Generate_new_external_ID_returns_AWS_External_ID_object_response.json index df7f04a6d6c..a693f451c97 100644 --- a/src/test/resources/cassettes/features/v2/Generate_new_external_ID_returns_AWS_External_ID_object_response.json +++ b/src/test/resources/cassettes/features/v2/Generate_new_external_ID_returns_AWS_External_ID_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cc" + "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cd" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json index 1f362181dcc..4b772a88638 100644 --- a/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b8e7d077-8c77-c831-844b-014fb6c12fa9" + "id": "b8e7d077-8c77-c831-844b-014fb6c12fab" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_given_APM_retention_filter_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_given_APM_retention_filter_returns_OK_response.json index 00cfe08a445..9cbcc541e46 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_given_APM_retention_filter_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_given_APM_retention_filter_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0697" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069b" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json index 23c93b2c9bf..7da31f7f5a9 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6bb82102-e994-f0d1-ee96-e1e3f1d80fff" + "id": "6bb82102-e994-f0d1-ee96-e1e3f1d80ffe" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_AWS_Account_object_response.json b/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_AWS_Account_object_response.json index 3ac71e748b0..f06cd450e2e 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_AWS_Account_object_response.json +++ b/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_AWS_Account_object_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "cd59362c-7df2-d349-9880-5b5536151a06" + "id": "cd59362c-7df2-d349-9880-5b5536151a09" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_list_of_AWS_log_ready_services_returns_AWS_Logs_Services_List_object_response.json b/src/test/resources/cassettes/features/v2/Get_list_of_AWS_log_ready_services_returns_AWS_Logs_Services_List_object_response.json index e05cab1201f..f469a5cda1f 100644 --- a/src/test/resources/cassettes/features/v2/Get_list_of_AWS_log_ready_services_returns_AWS_Logs_Services_List_object_response.json +++ b/src/test/resources/cassettes/features/v2/Get_list_of_AWS_log_ready_services_returns_AWS_Logs_Services_List_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "03c3c0d9-a62f-5ac6-398b-e22a05d14d7b" + "id": "03c3c0d9-a62f-5ac6-398b-e22a05d14d79" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json index af0de17f8e5..7091d2f2f7e 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a96" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json index 7c863a23483..d1447e359b2 100644 --- a/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216d" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json index e909452019b..3d0ccf67cf8 100644 --- a/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7d" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7a" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15d" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed159" }, { "httpRequest": { @@ -79,7 +79,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7e" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7b" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_all_APM_retention_filters_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_all_APM_retention_filters_returns_OK_response.json index 2fe54ec605a..0e57fd24aec 100644 --- a/src/test/resources/cassettes/features/v2/List_all_APM_retention_filters_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_all_APM_retention_filters_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069d" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069a" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_available_namespaces_returns_AWS_Namespaces_List_object_response.json b/src/test/resources/cassettes/features/v2/List_available_namespaces_returns_AWS_Namespaces_List_object_response.json index 04642dca659..d8f193d97dd 100644 --- a/src/test/resources/cassettes/features/v2/List_available_namespaces_returns_AWS_Namespaces_List_object_response.json +++ b/src/test/resources/cassettes/features/v2/List_available_namespaces_returns_AWS_Namespaces_List_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0f" + "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d10" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json index 96432bc9c52..da9b5e7695e 100644 --- a/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6bb82102-e994-f0d1-ee96-e1e3f1d80ffd" + "id": "6bb82102-e994-f0d1-ee96-e1e3f1d80fff" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_log_services_returns_AWS_Logs_Services_List_object_response.json b/src/test/resources/cassettes/features/v2/List_log_services_returns_AWS_Logs_Services_List_object_response.json index 266b281e690..e05cab1201f 100644 --- a/src/test/resources/cassettes/features/v2/List_log_services_returns_AWS_Logs_Services_List_object_response.json +++ b/src/test/resources/cassettes/features/v2/List_log_services_returns_AWS_Logs_Services_List_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "03c3c0d9-a62f-5ac6-398b-e22a05d14d7a" + "id": "03c3c0d9-a62f-5ac6-398b-e22a05d14d7b" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_namespaces_returns_AWS_Namespaces_List_object_response.json b/src/test/resources/cassettes/features/v2/List_namespaces_returns_AWS_Namespaces_List_object_response.json index a179615718f..adf7e6ef2ed 100644 --- a/src/test/resources/cassettes/features/v2/List_namespaces_returns_AWS_Namespaces_List_object_response.json +++ b/src/test/resources/cassettes/features/v2/List_namespaces_returns_AWS_Namespaces_List_object_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d11" + "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0e" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json index a48da463a36..3d75a2e2292 100644 --- a/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216e" + "id": "ab2c08c1-60c7-9278-3246-d650bb892173" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json index 069d3e1c02b..b11612d8018 100644 --- a/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892173" + "id": "ab2c08c1-60c7-9278-3246-d650bb892172" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Publish_App_returns_Created_response.json b/src/test/resources/cassettes/features/v2/Publish_App_returns_Created_response.json index ef4404358ef..56b5a264eff 100644 --- a/src/test/resources/cassettes/features/v2/Publish_App_returns_Created_response.json +++ b/src/test/resources/cassettes/features/v2/Publish_App_returns_Created_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b8e7d077-8c77-c831-844b-014fb6c12fa8" + "id": "b8e7d077-8c77-c831-844b-014fb6c12fad" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json index 21fe2974893..74fd42ce3ea 100644 --- a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7a" + "id": "01611a93-5e74-0630-3c51-f707c3b51e83" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15a" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed161" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json index 3aa483efdbe..06155248802 100644 --- a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7c" + "id": "01611a93-5e74-0630-3c51-f707c3b51e78" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15c" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed158" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json index e6d62878f58..d59c27e003b 100644 --- a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json +++ b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892170" + "id": "ab2c08c1-60c7-9278-3246-d650bb892174" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json index 988f4ea02fd..a8a7de74a9a 100644 --- a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892175" + "id": "ab2c08c1-60c7-9278-3246-d650bb892170" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Run_a_historical_job_returns_Status_created_response.json b/src/test/resources/cassettes/features/v2/Run_a_historical_job_returns_Status_created_response.json index eb4665f4b1a..2bed07d125b 100644 --- a/src/test/resources/cassettes/features/v2/Run_a_historical_job_returns_Status_created_response.json +++ b/src/test/resources/cassettes/features/v2/Run_a_historical_job_returns_Status_created_response.json @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "6bb82102-e994-f0d1-ee96-e1e3f1d80ffe" + "id": "6bb82102-e994-f0d1-ee96-e1e3f1d81000" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json index 5642e3dc46d..cfa2e05d9c5 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a97" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a93" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json index 1c6ba907db5..62ebf944c96 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a94" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a91" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json index 0a6614d4f78..cecc822b03b 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a92" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json index 5f4d0f2c008..b14660ec9cf 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a93" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a99" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_App_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_App_returns_Bad_Request_response.json index 21e8f9abb40..0d1e03261f6 100644 --- a/src/test/resources/cassettes/features/v2/Update_App_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_App_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b8e7d077-8c77-c831-844b-014fb6c12fab" + "id": "b8e7d077-8c77-c831-844b-014fb6c12faa" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json index a75b435ac30..2049e9ae6a5 100644 --- a/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b8e7d077-8c77-c831-844b-014fb6c12fad" + "id": "b8e7d077-8c77-c831-844b-014fb6c12fac" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json index 03f59af1021..7023629b791 100644 --- a/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e78" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7f" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed158" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json index 5ec8c73f70d..b45ec732f85 100644 --- a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e79" + "id": "01611a93-5e74-0630-3c51-f707c3b51e80" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed159" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json index f1aa2480d43..fc5d23f9112 100644 --- a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7b" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7e" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15b" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Bad_Request_response.json index af34ab432a4..b7374ea7691 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0698" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Not_Found_response.json index f8e2615c3f8..170166752c7 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_Not_Found_response.json @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "ce266f9d-5f90-251e-805b-1fa5bbd62fea" + "id": "ce266f9d-5f90-251e-805b-1fa5bbd62feb" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_OK_response.json index 5fed3161324..a2829dae35a 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0699" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Bad_Request_response.json index 130fe8b92e4..a8ee0769782 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069a" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0699" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Not_Found_response.json index 170166752c7..f8e2615c3f8 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_Not_Found_response.json @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "ce266f9d-5f90-251e-805b-1fa5bbd62feb" + "id": "ce266f9d-5f90-251e-805b-1fa5bbd62fea" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_OK_response.json index 19d4cf1a034..4f6a89b85f3 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_retention_filters_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069c" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0697" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json index 1143b899e5b..7974cef2f13 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216c" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json index 48fbe0112ca..5a7b5785430 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892172" + "id": "ab2c08c1-60c7-9278-3246-d650bb892171" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json index 5e8dbb307aa..3f8fd3d4235 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892174" + "id": "ab2c08c1-60c7-9278-3246-d650bb892175" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json index a6258c72557..44d8b94bc74 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892171" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_AWS_Account_object_response.json b/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_AWS_Account_object_response.json index 7b031ba9ca0..d1b1c3df533 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_AWS_Account_object_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_AWS_Account_object_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "cd59362c-7df2-d349-9880-5b5536151a08" + "id": "cd59362c-7df2-d349-9880-5b5536151a07" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Bad_Request_response.json index 8df7c214845..bdfd453a4ac 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "cd59362c-7df2-d349-9880-5b5536151a0b" + "id": "cd59362c-7df2-d349-9880-5b5536151a0a" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Not_Found_response.json index 2cad4645519..cb351a5a3b8 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_AWS_integration_returns_Not_Found_response.json @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "6796bfb2-5496-6f6a-d702-4bc629b25992" + "id": "6796bfb2-5496-6f6a-d702-4bc629b25991" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_an_incident_type_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_an_incident_type_returns_OK_response.json index c88b7d95168..9c252eb38fd 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_incident_type_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_incident_type_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd1" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd3" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json index 993810adfa5..820d5e08dd0 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a95" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a90" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json index 9dcd916f7a8..678d14c3416 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a91" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a96" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json index 4cd4f7a280d..3ccc782c10d 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8f" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a92" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json index 2b4273d0f8e..72621cd0a77 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8e" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a94" }, { "httpRequest": { diff --git a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature index aaea07a9f8a..ec4c3d3f39d 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature @@ -200,6 +200,16 @@ Feature: Security Monitoring And the response "options.detectionMethod" is equal to "third_party" And the response "thirdPartyCases[0].query" is equal to "status:error" + @skip-validation @team:DataDog/k9-cloud-security-platform + Scenario: Create a detection rule with type 'application_security 'returns "OK" response + Given new "CreateSecurityMonitoringRule" request + And body with value {"type":"application_security","name":"{{unique}}_appsec_rule","queries":[{"query":"@appsec.security_activity:business_logic.users.login.failure","aggregation":"count","groupByFields":["service","@http.client_ip"],"distinctFields":[]}],"filters":[],"cases":[{"name":"","status":"info","notifications":[],"condition":"a > 100000","actions":[{"type":"block_ip","options":{"duration":900}}]}],"options":{"keepAlive":3600,"maxSignalDuration":86400,"evaluationWindow":900,"detectionMethod":"threshold"},"isEnabled":true,"message":"Test rule","tags":[],"groupSignalsBy":["service"]} + When the request is sent + Then the response status is 200 OK + And the response "name" is equal to "{{ unique }}_appsec_rule" + And the response "type" is equal to "application_security" + And the response "message" is equal to "Test rule" + @skip-validation @team:DataDog/k9-cloud-security-platform Scenario: Create a detection rule with type 'impossible_travel' returns "OK" response Given new "CreateSecurityMonitoringRule" request