From b9834205a36c3bf6b63108d5bb7b0c24a8967504 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 12 Feb 2026 21:19:00 +0000 Subject: [PATCH] Regenerate client from commit 91aa34e of spec repo --- .generator/schemas/v1/openapi.yaml | 66 +++++- .generator/schemas/v2/openapi.yaml | 178 ++++++-------- .../CreateSLO_512760759.java | 76 ++++++ .../CreateTagPipelinesRuleset_1897535856.java | 63 +++++ .../UpdateTagPipelinesRuleset.java | 4 +- .../UpdateTagPipelinesRuleset_1964644735.java | 59 +++++ .../client/v1/model/SLOCountDefinition.java | 222 ++++++++++++++++++ .../api/client/v1/model/SLOCountSpec.java | 92 ++++++++ .../api/client/v1/model/SLOResponseData.java | 9 +- .../api/client/v1/model/SLOSliSpec.java | 71 +++++- .../v1/model/ServiceLevelObjective.java | 9 +- .../v1/model/ServiceLevelObjectiveQuery.java | 7 +- .../model/ServiceLevelObjectiveRequest.java | 9 +- ...ulesetRequestDataAttributesRulesItems.java | 22 +- ...tRequestDataAttributesRulesItemsQuery.java | 47 +++- ...ataAttributesRulesItemsReferenceTable.java | 48 +++- .../DataAttributesRulesItemsIfTagExists.java | 63 +++++ ...a => DataAttributesRulesItemsMapping.java} | 96 +++++--- .../RulesetRespDataAttributesRulesItems.java | 22 +- ...etRespDataAttributesRulesItemsMapping.java | 213 ----------------- ...esetRespDataAttributesRulesItemsQuery.java | 46 +++- ...ataAttributesRulesItemsReferenceTable.java | 47 +++- ...ulesetRequestDataAttributesRulesItems.java | 22 +- ...equestDataAttributesRulesItemsMapping.java | 219 ----------------- ...tRequestDataAttributesRulesItemsQuery.java | 47 +++- ...ataAttributesRulesItemsReferenceTable.java | 48 +++- ...i_specification_returns_OK_response.freeze | 1 + ...sli_specification_returns_OK_response.json | 58 +++++ ...th_metadata_deserializes_successfully.json | 2 +- ...your_organization_returns_OK_response.json | 2 +- ...te_API_key_returns_Forbidden_response.json | 2 +- .../Validate_API_key_returns_OK_response.json | 2 +- ...g_returns_AWS_Account_object_response.json | 2 +- ...ount_config_returns_Conflict_response.json | 4 +- ...t_config_returns_Bad_Request_response.json | 2 +- ...nt_config_returns_No_Content_response.json | 2 +- ...unt_config_returns_Not_Found_response.json | 2 +- ...turns_AWS_External_ID_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 +- ...s_AWS_Namespaces_List_object_response.json | 2 +- ...g_returns_AWS_Account_object_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 +- ...re_items_returns_Bad_Request_response.json | 2 +- ...e_datastore_items_returns_OK_response.json | 2 +- ...re_items_returns_Bad_Request_response.json | 2 +- ..._a_historical_job_returns_OK_response.json | 2 +- ...ent_case_returns_Bad_Request_response.json | 2 +- .../v2/Comment_case_returns_OK_response.json | 2 +- .../Create_App_returns_Created_response.json | 2 +- ...options_enabled_successfully_response.json | 4 +- ..._Connection_returns_Conflict_response.json | 4 +- ...te_Org_Connection_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 +- ...should_save_match_returns_OK_response.json | 4 +- ..._custom_framework_returns_OK_response.json | 4 +- .../Create_a_dataset_returns_OK_response.json | 2 +- ...restriction_query_returns_OK_response.json | 2 +- ...integration_returns_Conflict_response.json | 2 +- ...ncident_type_returns_CREATED_response.json | 2 +- ...rity_finding_returns_Created_response.json | 2 +- ...ity_findings_returns_Created_response.json | 2 +- ...ase_type_returns_Bad_Request_response.json | 2 +- ..._a_case_type_returns_CREATED_response.json | 2 +- ...ication_rule_returns_Created_response.json | 2 +- ...ion_template_returns_Created_response.json | 2 +- ...with_a_permission_returns_OK_response.json | 2 +- ...h_if_tag_exists_returns_OK_response.freeze | 1 + ...ith_if_tag_exists_returns_OK_response.json | 32 +++ ..._deletion_request_returns_OK_response.json | 2 +- .../v2/Delete_App_returns_OK_response.json | 2 +- ...ete_Multiple_Apps_returns_OK_response.json | 2 +- ...te_Org_Connection_returns_OK_response.json | 2 +- ...te_Scanning_Group_returns_OK_response.json | 4 +- ..._exclusion_filter_returns_OK_response.json | 2 +- ...case_type_returns_NotContent_response.json | 2 +- ...elete_a_case_type_returns_OK_response.json | 2 +- ..._a_critical_asset_returns_OK_response.json | 2 +- ...a_dataset_returns_No_Content_response.json | 2 +- ...restriction_query_returns_OK_response.json | 2 +- ..._retention_filter_returns_OK_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 +- ..._comment_returns_Bad_Request_response.json | 2 +- ...e_comment_returns_No_Content_response.json | 2 +- ...se_comment_returns_Not_Found_response.json | 2 +- ..._from_case_returns_Not_Found_response.json | 2 +- ...tribute_from_case_returns_OK_response.json | 2 +- ...s_config_returns_Bad_Request_response.json | 2 +- ...es_config_returns_No_Content_response.json | 2 +- ...te_datastore_item_returns_OK_response.json | 2 +- .../Delete_datastore_returns_OK_response.json | 2 +- ...tion_rule_returns_No_Content_response.json | 2 +- ..._template_returns_No_Content_response.json | 2 +- .../Edit_a_dataset_returns_OK_response.json | 2 +- ...turns_AWS_External_ID_object_response.json | 2 +- ...sk_by_id_returns_Bad_Request_response.json | 2 +- ...S_On_Demand_tasks_returns_OK_response.json | 2 +- ...and_task_returns_Bad_Request_response.json | 2 +- .../v2/Get_App_returns_Gone_response.json | 2 +- .../v2/Get_App_returns_OK_response.json | 2 +- ..._GCP_scan_options_returns_OK_response.json | 2 +- ..._a_critical_asset_returns_OK_response.json | 2 +- ..._custom_framework_returns_OK_response.json | 4 +- ..._retention_filter_returns_OK_response.json | 2 +- ...t_a_job_s_details_returns_OK_response.json | 2 +- ...restriction_query_returns_OK_response.json | 2 +- ...gle_dataset_by_ID_returns_OK_response.json | 2 +- ...specific_pipeline_returns_OK_response.json | 2 +- ...nfig_of_case_type_returns_OK_response.json | 2 +- .../v2/Get_all_rules_returns_OK_response.json | 2 +- ...onfig_ID_returns_Bad_Request_response.json | 2 +- ..._config_ID_returns_Not_Found_response.json | 2 +- ..._Successfully_got_a_workflow_response.json | 2 +- .../v2/Get_datastore_returns_OK_response.json | 2 +- ...notification_rule_returns_OK_response.json | 2 +- ...fication_template_returns_OK_response.json | 2 +- ...details_of_a_case_returns_OK_response.json | 2 +- ...king_issue_returns_Not_Found_response.json | 2 +- ...or_tracking_issue_returns_OK_response.json | 2 +- ...deletion_requests_returns_OK_response.json | 2 +- ...mission_to_a_role_returns_OK_response.json | 2 +- ...restriction_query_returns_OK_response.json | 2 +- ...S_on_demand_tasks_returns_OK_response.json | 2 +- ..._GCP_scan_options_returns_OK_response.json | 2 +- ...t_Scanning_Groups_returns_OK_response.json | 6 +- ...retention_filters_returns_OK_response.json | 2 +- .../List_all_rules_returns_OK_response.json | 2 +- ...t_datastore_items_returns_OK_response.json | 2 +- ...t_historical_jobs_returns_OK_response.json | 2 +- ...otification_rules_returns_OK_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 +- .../List_pipelines_returns_OK_response.json | 2 +- ...restriction_query_returns_OK_response.json | 2 +- ...n_Options_returns_No_Content_response.json | 2 +- ..._AWS_Scan_Options_returns_OK_response.json | 2 +- ...options_enabled_successfully_response.json | 4 +- .../Publish_App_returns_Created_response.json | 2 +- ...r_Groups_returns_Bad_Request_response.json | 4 +- .../Reorder_Groups_returns_OK_response.json | 6 +- ...permission_returns_Not_found_response.json | 2 +- ...Revoke_permission_returns_OK_response.json | 2 +- ...g_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 +- .../v2/Unpublish_App_returns_OK_response.json | 2 +- ...n_options_returns_No_Content_response.json | 2 +- ...date_App_returns_Bad_Request_response.json | 2 +- .../v2/Update_App_returns_OK_response.json | 2 +- ...nnection_returns_Bad_Request_response.json | 2 +- ...Connection_returns_Not_Found_response.json | 2 +- ...te_Org_Connection_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 +- ...tom_Rule_returns_Bad_Request_response.json | 2 +- ...a_WAF_Custom_Rule_returns_OK_response.json | 2 +- ...n_filter_returns_Bad_Request_response.json | 2 +- ..._a_critical_asset_returns_OK_response.json | 2 +- ...n_filter_returns_Bad_Request_response.json | 2 +- ...pipeline_returns_Bad_Request_response.json | 2 +- ...Update_a_pipeline_returns_OK_response.json | 2 +- ...n_filter_returns_Bad_Request_response.json | 2 +- ..._retention_filter_returns_OK_response.json | 2 +- ...r_with_trace_rate_returns_OK_response.json | 2 +- ..._filters_returns_Bad_Request_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 +- .../v2/Update_a_role_returns_OK_response.json | 2 +- ...n_returns_AWS_Account_object_response.json | 2 +- ...egration_returns_Bad_Request_response.json | 2 +- ...Workflow_returns_Bad_request_response.json | 2 +- ...cessfully_updated_a_workflow_response.json | 2 +- ..._an_incident_type_returns_OK_response.json | 2 +- ...tributes_returns_Bad_Request_response.json | 2 +- ...e_case_attributes_returns_OK_response.json | 2 +- ...ttribute_returns_Bad_Request_response.json | 2 +- ..._attribute_returns_Not_Found_response.json | 2 +- ..._custom_attribute_returns_OK_response.json | 2 +- ...cription_returns_Bad_Request_response.json | 2 +- ..._case_description_returns_OK_response.json | 2 +- ...priority_returns_Bad_Request_response.json | 2 +- ...ate_case_priority_returns_OK_response.json | 2 +- ...pdate_case_status_returns_OK_response.json | 2 +- ...se_title_returns_Bad_Request_response.json | 2 +- ...Update_case_title_returns_OK_response.json | 2 +- ...te_datastore_item_returns_OK_response.json | 2 +- ...notification_rule_returns_OK_response.json | 2 +- ...h_if_tag_exists_returns_OK_response.freeze | 1 + ...ith_if_tag_exists_returns_OK_response.json | 32 +++ .../v1/api/service_level_objectives.feature | 17 ++ .../v2/api/cloud_cost_management.feature | 17 ++ 204 files changed, 1503 insertions(+), 837 deletions(-) create mode 100644 examples/v1/service-level-objectives/CreateSLO_512760759.java create mode 100644 examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.java create mode 100644 examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.java create mode 100644 src/main/java/com/datadog/api/client/v1/model/SLOCountDefinition.java create mode 100644 src/main/java/com/datadog/api/client/v1/model/SLOCountSpec.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/DataAttributesRulesItemsIfTagExists.java rename src/main/java/com/datadog/api/client/v2/model/{CreateRulesetRequestDataAttributesRulesItemsMapping.java => DataAttributesRulesItemsMapping.java} (64%) delete mode 100644 src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsMapping.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsMapping.java create mode 100644 src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.freeze create mode 100644 src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.json create mode 100644 src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json create mode 100644 src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index a38d274f9b8..3e86f3a82c2 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -11900,6 +11900,60 @@ components: example: UTC type: string type: object + SLOCountDefinition: + description: 'A count-based (metric) SLI specification, composed of three parts: + the good events formula, the total events formula, + + and the underlying queries.' + example: + good_events_formula: query1 - query2 + queries: + - data_source: metrics + name: query1 + query: sum:trace.servlet.request.hits{*} by {env}.as_count() + - data_source: metrics + name: query2 + query: sum:trace.servlet.request.errors{*} by {env}.as_count() + total_events_formula: query1 + properties: + good_events_formula: + $ref: '#/components/schemas/SLOFormula' + queries: + example: + - data_source: metrics + name: query1 + query: sum:trace.servlet.request.hits{*} by {env}.as_count() + items: + $ref: '#/components/schemas/SLODataSourceQueryDefinition' + minItems: 1 + type: array + total_events_formula: + $ref: '#/components/schemas/SLOFormula' + required: + - good_events_formula + - total_events_formula + - queries + type: object + SLOCountSpec: + additionalProperties: false + description: A metric SLI specification. + example: + count: + good_events_formula: query1 - query2 + queries: + - data_source: metrics + name: query1 + query: sum:trace.servlet.request.hits{*} by {env}.as_count() + - data_source: metrics + name: query2 + query: sum:trace.servlet.request.errors{*} by {env}.as_count() + total_events_formula: query1 + properties: + count: + $ref: '#/components/schemas/SLOCountDefinition' + required: + - count + type: object SLOCreator: description: The creator of the SLO nullable: true @@ -12747,8 +12801,12 @@ components: type: string query: $ref: '#/components/schemas/ServiceLevelObjectiveQuery' + description: The metric query used to define a count-based SLO as the ratio + of good events to total events. sli_specification: $ref: '#/components/schemas/SLOSliSpec' + description: A generic SLI specification. This is currently used for time-slice + and count-based (metric) SLOs only. tags: description: 'A list of tags associated with this service level objective. @@ -12804,10 +12862,11 @@ components: type: number type: object SLOSliSpec: - description: A generic SLI specification. This is currently used for time-slice - SLOs only. + description: A generic SLI specification. This is used for time-slice and count-based + (metric) SLOs only. oneOf: - $ref: '#/components/schemas/SLOTimeSliceSpec' + - $ref: '#/components/schemas/SLOCountSpec' SLOState: description: State of the SLO. enum: @@ -13959,7 +14018,8 @@ components: - type type: object ServiceLevelObjectiveQuery: - description: 'A metric-based SLO. **Required if type is `metric`**. Note that + description: 'A count-based (metric) SLO query. This field is superseded by + `sli_specification` but is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator to be used because this will sum up all request counts instead of averaging diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 83eb2881717..73c6d673719 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -14428,7 +14428,7 @@ components: key: cost_center value: engineering case_insensitivity: false - if_not_exists: true + if_tag_exists: do_not_apply query: account_id:"123456789" AND service:"web-api" reference_table: null id: New Ruleset @@ -14473,7 +14473,7 @@ components: example: false type: boolean mapping: - $ref: '#/components/schemas/CreateRulesetRequestDataAttributesRulesItemsMapping' + $ref: '#/components/schemas/DataAttributesRulesItemsMapping' metadata: $ref: '#/components/schemas/RulesetItemMetadata' name: @@ -14488,31 +14488,6 @@ components: - enabled - name type: object - CreateRulesetRequestDataAttributesRulesItemsMapping: - description: The definition of `CreateRulesetRequestDataAttributesRulesItemsMapping` - object. - nullable: true - properties: - destination_key: - description: The `mapping` `destination_key`. - example: '' - type: string - if_not_exists: - description: The `mapping` `if_not_exists`. - example: false - type: boolean - source_keys: - description: The `mapping` `source_keys`. - example: - - '' - items: - type: string - type: array - required: - - destination_key - - if_not_exists - - source_keys - type: object CreateRulesetRequestDataAttributesRulesItemsQuery: description: The definition of `CreateRulesetRequestDataAttributesRulesItemsQuery` object. @@ -14524,16 +14499,17 @@ components: description: The `query` `case_insensitivity`. type: boolean if_not_exists: - description: The `query` `if_not_exists`. - example: false + deprecated: true + description: Deprecated. Use `if_tag_exists` instead. The `query` `if_not_exists`. type: boolean + if_tag_exists: + $ref: '#/components/schemas/DataAttributesRulesItemsIfTagExists' query: description: The `query` `query`. example: '' type: string required: - addition - - if_not_exists - query type: object CreateRulesetRequestDataAttributesRulesItemsQueryAddition: @@ -14567,8 +14543,12 @@ components: $ref: '#/components/schemas/CreateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems' type: array if_not_exists: - description: The `reference_table` `if_not_exists`. + deprecated: true + description: Deprecated. Use `if_tag_exists` instead. The `reference_table` + `if_not_exists`. type: boolean + if_tag_exists: + $ref: '#/components/schemas/DataAttributesRulesItemsIfTagExists' source_keys: description: The `reference_table` `source_keys`. example: @@ -18273,6 +18253,42 @@ components: - INTEGRATION_SCREENBOARD - INTEGRATION_TIMEBOARD - HOST_TIMEBOARD + DataAttributesRulesItemsIfTagExists: + description: The behavior when the tag already exists. + enum: + - append + - do_not_apply + - replace + type: string + x-enum-varnames: + - APPEND + - DO_NOT_APPLY + - REPLACE + DataAttributesRulesItemsMapping: + description: The definition of `DataAttributesRulesItemsMapping` object. + nullable: true + properties: + destination_key: + description: The `mapping` `destination_key`. + example: '' + type: string + if_not_exists: + deprecated: true + description: Deprecated. Use `if_tag_exists` instead. The `mapping` `if_not_exists`. + type: boolean + if_tag_exists: + $ref: '#/components/schemas/DataAttributesRulesItemsIfTagExists' + source_keys: + description: The `mapping` `source_keys`. + example: + - '' + items: + type: string + type: array + required: + - destination_key + - source_keys + type: object DataDeletionResponseItem: description: The created data deletion request information. properties: @@ -50015,13 +50031,13 @@ components: key: abc value: ww case_insensitivity: false - if_not_exists: true + if_tag_exists: do_not_apply query: billingcurrency:"USD" AND account_name:"SZA96462" AND billingcurrency:"USD" reference_table: null - enabled: true mapping: destination_key: h - if_not_exists: true + if_tag_exists: do_not_apply source_keys: - accountname - accountownerid @@ -50041,7 +50057,7 @@ components: output_key: status - input_column: status_description output_key: dess - if_not_exists: false + if_tag_exists: append source_keys: - http_status - status_description @@ -50074,13 +50090,13 @@ components: key: environment value: production case_insensitivity: false - if_not_exists: true + if_tag_exists: do_not_apply query: billingcurrency:"USD" AND account_name:"prod-account" reference_table: null - enabled: true mapping: destination_key: team_owner - if_not_exists: true + if_tag_exists: do_not_apply source_keys: - account_name - service @@ -50100,7 +50116,7 @@ components: output_key: status - input_column: status_description output_key: dess - if_not_exists: false + if_tag_exists: append source_keys: - http_status - status_description @@ -50125,7 +50141,7 @@ components: key: cost_center value: engineering case_insensitivity: true - if_not_exists: true + if_tag_exists: do_not_apply query: account_name:"dev-*" reference_table: null version: 1 @@ -50236,7 +50252,7 @@ components: example: false type: boolean mapping: - $ref: '#/components/schemas/RulesetRespDataAttributesRulesItemsMapping' + $ref: '#/components/schemas/DataAttributesRulesItemsMapping' metadata: $ref: '#/components/schemas/RulesetItemMetadata' name: @@ -50251,31 +50267,6 @@ components: - enabled - name type: object - RulesetRespDataAttributesRulesItemsMapping: - description: The definition of `RulesetRespDataAttributesRulesItemsMapping` - object. - nullable: true - properties: - destination_key: - description: The `mapping` `destination_key`. - example: '' - type: string - if_not_exists: - description: The `mapping` `if_not_exists`. - example: false - type: boolean - source_keys: - description: The `mapping` `source_keys`. - example: - - '' - items: - type: string - type: array - required: - - destination_key - - if_not_exists - - source_keys - type: object RulesetRespDataAttributesRulesItemsQuery: description: The definition of `RulesetRespDataAttributesRulesItemsQuery` object. nullable: true @@ -50286,16 +50277,17 @@ components: description: The `query` `case_insensitivity`. type: boolean if_not_exists: - description: The `query` `if_not_exists`. - example: false + deprecated: true + description: Deprecated. Use `if_tag_exists` instead. The `query` `if_not_exists`. type: boolean + if_tag_exists: + $ref: '#/components/schemas/DataAttributesRulesItemsIfTagExists' query: description: The `query` `query`. example: '' type: string required: - addition - - if_not_exists - query type: object RulesetRespDataAttributesRulesItemsQueryAddition: @@ -50329,8 +50321,12 @@ components: $ref: '#/components/schemas/RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems' type: array if_not_exists: - description: The `reference_table` `if_not_exists`. + deprecated: true + description: Deprecated. Use `if_tag_exists` instead. The `reference_table` + `if_not_exists`. type: boolean + if_tag_exists: + $ref: '#/components/schemas/DataAttributesRulesItemsIfTagExists' source_keys: description: The `reference_table` `source_keys`. example: @@ -65276,13 +65272,13 @@ components: key: cost_center value: engineering case_insensitivity: false - if_not_exists: true + if_tag_exists: do_not_apply query: account_id:"123456789" AND service:"web-api" reference_table: null - enabled: true mapping: destination_key: team_owner - if_not_exists: true + if_tag_exists: do_not_apply source_keys: - account_name - account_id @@ -65302,7 +65298,7 @@ components: output_key: status - input_column: status_description output_key: dess - if_not_exists: false + if_tag_exists: append source_keys: - http_status - status_description @@ -65354,7 +65350,7 @@ components: example: false type: boolean mapping: - $ref: '#/components/schemas/UpdateRulesetRequestDataAttributesRulesItemsMapping' + $ref: '#/components/schemas/DataAttributesRulesItemsMapping' metadata: $ref: '#/components/schemas/RulesetItemMetadata' name: @@ -65369,31 +65365,6 @@ components: - enabled - name type: object - UpdateRulesetRequestDataAttributesRulesItemsMapping: - description: The definition of `UpdateRulesetRequestDataAttributesRulesItemsMapping` - object. - nullable: true - properties: - destination_key: - description: The `mapping` `destination_key`. - example: '' - type: string - if_not_exists: - description: The `mapping` `if_not_exists`. - example: false - type: boolean - source_keys: - description: The `mapping` `source_keys`. - example: - - '' - items: - type: string - type: array - required: - - destination_key - - if_not_exists - - source_keys - type: object UpdateRulesetRequestDataAttributesRulesItemsQuery: description: The definition of `UpdateRulesetRequestDataAttributesRulesItemsQuery` object. @@ -65405,16 +65376,17 @@ components: description: The `query` `case_insensitivity`. type: boolean if_not_exists: - description: The `query` `if_not_exists`. - example: false + deprecated: true + description: Deprecated. Use `if_tag_exists` instead. The `query` `if_not_exists`. type: boolean + if_tag_exists: + $ref: '#/components/schemas/DataAttributesRulesItemsIfTagExists' query: description: The `query` `query`. example: '' type: string required: - addition - - if_not_exists - query type: object UpdateRulesetRequestDataAttributesRulesItemsQueryAddition: @@ -65448,8 +65420,12 @@ components: $ref: '#/components/schemas/UpdateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems' type: array if_not_exists: - description: The `reference_table` `if_not_exists`. + deprecated: true + description: Deprecated. Use `if_tag_exists` instead. The `reference_table` + `if_not_exists`. type: boolean + if_tag_exists: + $ref: '#/components/schemas/DataAttributesRulesItemsIfTagExists' source_keys: description: The `reference_table` `source_keys`. example: diff --git a/examples/v1/service-level-objectives/CreateSLO_512760759.java b/examples/v1/service-level-objectives/CreateSLO_512760759.java new file mode 100644 index 00000000000..ccbd3e89353 --- /dev/null +++ b/examples/v1/service-level-objectives/CreateSLO_512760759.java @@ -0,0 +1,76 @@ +// Create a new metric SLO object using sli_specification returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v1.api.ServiceLevelObjectivesApi; +import com.datadog.api.client.v1.model.FormulaAndFunctionMetricDataSource; +import com.datadog.api.client.v1.model.FormulaAndFunctionMetricQueryDefinition; +import com.datadog.api.client.v1.model.SLOCountDefinition; +import com.datadog.api.client.v1.model.SLOCountSpec; +import com.datadog.api.client.v1.model.SLODataSourceQueryDefinition; +import com.datadog.api.client.v1.model.SLOFormula; +import com.datadog.api.client.v1.model.SLOListResponse; +import com.datadog.api.client.v1.model.SLOSliSpec; +import com.datadog.api.client.v1.model.SLOThreshold; +import com.datadog.api.client.v1.model.SLOTimeframe; +import com.datadog.api.client.v1.model.SLOType; +import com.datadog.api.client.v1.model.ServiceLevelObjectiveRequest; +import java.util.Arrays; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + ServiceLevelObjectivesApi apiInstance = new ServiceLevelObjectivesApi(defaultClient); + + ServiceLevelObjectiveRequest body = + new ServiceLevelObjectiveRequest() + .type(SLOType.METRIC) + .description("Metric SLO using sli_specification") + .name("Example-Service-Level-Objective") + .sliSpecification( + new SLOSliSpec( + new SLOCountSpec() + .count( + new SLOCountDefinition() + .goodEventsFormula(new SLOFormula().formula("query1 - query2")) + .totalEventsFormula(new SLOFormula().formula("query1")) + .queries( + Arrays.asList( + new SLODataSourceQueryDefinition( + new FormulaAndFunctionMetricQueryDefinition() + .dataSource( + FormulaAndFunctionMetricDataSource.METRICS) + .name("query1") + .query("sum:httpservice.hits{*}.as_count()")), + new SLODataSourceQueryDefinition( + new FormulaAndFunctionMetricQueryDefinition() + .dataSource( + FormulaAndFunctionMetricDataSource.METRICS) + .name("query2") + .query("sum:httpservice.errors{*}.as_count()"))))))) + .tags(Arrays.asList("env:prod", "type:count")) + .thresholds( + Collections.singletonList( + new SLOThreshold() + .target(99.0) + .targetDisplay("99.0") + .timeframe(SLOTimeframe.SEVEN_DAYS) + .warning(99.5) + .warningDisplay("99.5"))) + .timeframe(SLOTimeframe.SEVEN_DAYS) + .targetThreshold(99.0) + .warningThreshold(99.5); + + try { + SLOListResponse result = apiInstance.createSLO(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ServiceLevelObjectivesApi#createSLO"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.java b/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.java new file mode 100644 index 00000000000..4c96d5f09a3 --- /dev/null +++ b/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.java @@ -0,0 +1,63 @@ +// Create tag pipeline ruleset with if_tag_exists returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.CloudCostManagementApi; +import com.datadog.api.client.v2.model.CreateRulesetRequest; +import com.datadog.api.client.v2.model.CreateRulesetRequestData; +import com.datadog.api.client.v2.model.CreateRulesetRequestDataAttributes; +import com.datadog.api.client.v2.model.CreateRulesetRequestDataAttributesRulesItems; +import com.datadog.api.client.v2.model.CreateRulesetRequestDataAttributesRulesItemsQuery; +import com.datadog.api.client.v2.model.CreateRulesetRequestDataAttributesRulesItemsQueryAddition; +import com.datadog.api.client.v2.model.CreateRulesetRequestDataType; +import com.datadog.api.client.v2.model.DataAttributesRulesItemsIfTagExists; +import com.datadog.api.client.v2.model.RulesetResp; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient); + + CreateRulesetRequest body = + new CreateRulesetRequest() + .data( + new CreateRulesetRequestData() + .attributes( + new CreateRulesetRequestDataAttributes() + .enabled(true) + .rules( + Collections.singletonList( + new CreateRulesetRequestDataAttributesRulesItems() + .enabled(true) + .mapping(null) + .name("Add Cost Center Tag") + .query( + new CreateRulesetRequestDataAttributesRulesItemsQuery() + .addition( + new CreateRulesetRequestDataAttributesRulesItemsQueryAddition() + .key("cost_center") + .value("engineering")) + .caseInsensitivity(false) + .ifTagExists( + DataAttributesRulesItemsIfTagExists.REPLACE) + .query( + """ +account_id:"123456789" AND service:"web-api" +""")) + .referenceTable(null)))) + .id("New Ruleset") + .type(CreateRulesetRequestDataType.CREATE_RULESET)); + + try { + RulesetResp result = apiInstance.createTagPipelinesRuleset(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CloudCostManagementApi#createTagPipelinesRuleset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.java b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.java index 934be510385..2999a00dfb8 100644 --- a/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.java +++ b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.java @@ -3,12 +3,12 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.CloudCostManagementApi; +import com.datadog.api.client.v2.model.DataAttributesRulesItemsMapping; import com.datadog.api.client.v2.model.RulesetResp; import com.datadog.api.client.v2.model.UpdateRulesetRequest; import com.datadog.api.client.v2.model.UpdateRulesetRequestData; import com.datadog.api.client.v2.model.UpdateRulesetRequestDataAttributes; import com.datadog.api.client.v2.model.UpdateRulesetRequestDataAttributesRulesItems; -import com.datadog.api.client.v2.model.UpdateRulesetRequestDataAttributesRulesItemsMapping; import com.datadog.api.client.v2.model.UpdateRulesetRequestDataType; import java.util.Arrays; import java.util.Collections; @@ -31,7 +31,7 @@ public static void main(String[] args) { new UpdateRulesetRequestDataAttributesRulesItems() .enabled(true) .mapping( - new UpdateRulesetRequestDataAttributesRulesItemsMapping() + new DataAttributesRulesItemsMapping() .destinationKey("team_owner") .ifNotExists(true) .sourceKeys( diff --git a/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.java b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.java new file mode 100644 index 00000000000..e49b62edbd5 --- /dev/null +++ b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.java @@ -0,0 +1,59 @@ +// Update tag pipeline ruleset with if_tag_exists returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.CloudCostManagementApi; +import com.datadog.api.client.v2.model.DataAttributesRulesItemsIfTagExists; +import com.datadog.api.client.v2.model.DataAttributesRulesItemsMapping; +import com.datadog.api.client.v2.model.RulesetResp; +import com.datadog.api.client.v2.model.UpdateRulesetRequest; +import com.datadog.api.client.v2.model.UpdateRulesetRequestData; +import com.datadog.api.client.v2.model.UpdateRulesetRequestDataAttributes; +import com.datadog.api.client.v2.model.UpdateRulesetRequestDataAttributesRulesItems; +import com.datadog.api.client.v2.model.UpdateRulesetRequestDataType; +import java.util.Arrays; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient); + + UpdateRulesetRequest body = + new UpdateRulesetRequest() + .data( + new UpdateRulesetRequestData() + .attributes( + new UpdateRulesetRequestDataAttributes() + .enabled(true) + .lastVersion(3611102L) + .rules( + Collections.singletonList( + new UpdateRulesetRequestDataAttributesRulesItems() + .enabled(true) + .mapping( + new DataAttributesRulesItemsMapping() + .destinationKey("team_owner") + .ifTagExists( + DataAttributesRulesItemsIfTagExists.REPLACE) + .sourceKeys( + Arrays.asList("account_name", "account_id"))) + .name("Account Name Mapping") + .query(null) + .referenceTable(null)))) + .id("New Ruleset") + .type(UpdateRulesetRequestDataType.UPDATE_RULESET)); + + try { + RulesetResp result = + apiInstance.updateTagPipelinesRuleset("ee10c3ff-312f-464c-b4f6-46adaa6d00a1", body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CloudCostManagementApi#updateTagPipelinesRuleset"); + 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/v1/model/SLOCountDefinition.java b/src/main/java/com/datadog/api/client/v1/model/SLOCountDefinition.java new file mode 100644 index 00000000000..d63c83045ef --- /dev/null +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCountDefinition.java @@ -0,0 +1,222 @@ +/* + * 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.v1.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * A count-based (metric) SLI specification, composed of three parts: the good events formula, the + * total events formula, and the underlying queries. + */ +@JsonPropertyOrder({ + SLOCountDefinition.JSON_PROPERTY_GOOD_EVENTS_FORMULA, + SLOCountDefinition.JSON_PROPERTY_QUERIES, + SLOCountDefinition.JSON_PROPERTY_TOTAL_EVENTS_FORMULA +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SLOCountDefinition { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_GOOD_EVENTS_FORMULA = "good_events_formula"; + private SLOFormula goodEventsFormula; + + public static final String JSON_PROPERTY_QUERIES = "queries"; + private List queries = new ArrayList<>(); + + public static final String JSON_PROPERTY_TOTAL_EVENTS_FORMULA = "total_events_formula"; + private SLOFormula totalEventsFormula; + + public SLOCountDefinition() {} + + @JsonCreator + public SLOCountDefinition( + @JsonProperty(required = true, value = JSON_PROPERTY_GOOD_EVENTS_FORMULA) + SLOFormula goodEventsFormula, + @JsonProperty(required = true, value = JSON_PROPERTY_QUERIES) + List queries, + @JsonProperty(required = true, value = JSON_PROPERTY_TOTAL_EVENTS_FORMULA) + SLOFormula totalEventsFormula) { + this.goodEventsFormula = goodEventsFormula; + this.unparsed |= goodEventsFormula.unparsed; + this.queries = queries; + this.totalEventsFormula = totalEventsFormula; + this.unparsed |= totalEventsFormula.unparsed; + } + + public SLOCountDefinition goodEventsFormula(SLOFormula goodEventsFormula) { + this.goodEventsFormula = goodEventsFormula; + this.unparsed |= goodEventsFormula.unparsed; + return this; + } + + /** + * A formula that specifies how to combine the results of multiple queries. + * + * @return goodEventsFormula + */ + @JsonProperty(JSON_PROPERTY_GOOD_EVENTS_FORMULA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SLOFormula getGoodEventsFormula() { + return goodEventsFormula; + } + + public void setGoodEventsFormula(SLOFormula goodEventsFormula) { + this.goodEventsFormula = goodEventsFormula; + } + + public SLOCountDefinition queries(List queries) { + this.queries = queries; + for (SLODataSourceQueryDefinition item : queries) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SLOCountDefinition addQueriesItem(SLODataSourceQueryDefinition queriesItem) { + this.queries.add(queriesItem); + this.unparsed |= queriesItem.unparsed; + return this; + } + + /** + * Getqueries + * + * @return queries + */ + @JsonProperty(JSON_PROPERTY_QUERIES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getQueries() { + return queries; + } + + public void setQueries(List queries) { + this.queries = queries; + } + + public SLOCountDefinition totalEventsFormula(SLOFormula totalEventsFormula) { + this.totalEventsFormula = totalEventsFormula; + this.unparsed |= totalEventsFormula.unparsed; + return this; + } + + /** + * A formula that specifies how to combine the results of multiple queries. + * + * @return totalEventsFormula + */ + @JsonProperty(JSON_PROPERTY_TOTAL_EVENTS_FORMULA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SLOFormula getTotalEventsFormula() { + return totalEventsFormula; + } + + public void setTotalEventsFormula(SLOFormula totalEventsFormula) { + this.totalEventsFormula = totalEventsFormula; + } + + /** + * 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 SLOCountDefinition + */ + @JsonAnySetter + public SLOCountDefinition 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 SLOCountDefinition object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SLOCountDefinition sloCountDefinition = (SLOCountDefinition) o; + return Objects.equals(this.goodEventsFormula, sloCountDefinition.goodEventsFormula) + && Objects.equals(this.queries, sloCountDefinition.queries) + && Objects.equals(this.totalEventsFormula, sloCountDefinition.totalEventsFormula) + && Objects.equals(this.additionalProperties, sloCountDefinition.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(goodEventsFormula, queries, totalEventsFormula, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SLOCountDefinition {\n"); + sb.append(" goodEventsFormula: ").append(toIndentedString(goodEventsFormula)).append("\n"); + sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); + sb.append(" totalEventsFormula: ").append(toIndentedString(totalEventsFormula)).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/v1/model/SLOCountSpec.java b/src/main/java/com/datadog/api/client/v1/model/SLOCountSpec.java new file mode 100644 index 00000000000..d11603840c5 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v1/model/SLOCountSpec.java @@ -0,0 +1,92 @@ +/* + * 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.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.Objects; + +/** A metric SLI specification. */ +@JsonPropertyOrder({SLOCountSpec.JSON_PROPERTY_COUNT}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SLOCountSpec { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_COUNT = "count"; + private SLOCountDefinition count; + + public SLOCountSpec() {} + + @JsonCreator + public SLOCountSpec( + @JsonProperty(required = true, value = JSON_PROPERTY_COUNT) SLOCountDefinition count) { + this.count = count; + this.unparsed |= count.unparsed; + } + + public SLOCountSpec count(SLOCountDefinition count) { + this.count = count; + this.unparsed |= count.unparsed; + return this; + } + + /** + * A count-based (metric) SLI specification, composed of three parts: the good events formula, the + * total events formula, and the underlying queries. + * + * @return count + */ + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SLOCountDefinition getCount() { + return count; + } + + public void setCount(SLOCountDefinition count) { + this.count = count; + } + + /** Return true if this SLOCountSpec object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SLOCountSpec sloCountSpec = (SLOCountSpec) o; + return Objects.equals(this.count, sloCountSpec.count); + } + + @Override + public int hashCode() { + return Objects.hash(count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SLOCountSpec {\n"); + sb.append(" count: ").append(toIndentedString(count)).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/v1/model/SLOResponseData.java b/src/main/java/com/datadog/api/client/v1/model/SLOResponseData.java index e55f6a99d45..ab9ba44532a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOResponseData.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOResponseData.java @@ -343,9 +343,10 @@ public SLOResponseData query(ServiceLevelObjectiveQuery query) { } /** - * A metric-based SLO. Required if type is metric. Note that Datadog - * only allows the sum by aggregator to be used because this will sum up all request counts - * instead of averaging them, or taking the max or min of all of those requests. + * A count-based (metric) SLO query. This field is superseded by sli_specification + * but is retained for backwards compatibility. Note that Datadog only allows the sum by + * aggregator to be used because this will sum up all request counts instead of averaging them, or + * taking the max or min of all of those requests. * * @return query */ @@ -367,7 +368,7 @@ public SLOResponseData sliSpecification(SLOSliSpec sliSpecification) { } /** - * A generic SLI specification. This is currently used for time-slice SLOs only. + * A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only. * * @return sliSpecification */ diff --git a/src/main/java/com/datadog/api/client/v1/model/SLOSliSpec.java b/src/main/java/com/datadog/api/client/v1/model/SLOSliSpec.java index 36a3066f9f6..c45083515b6 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SLOSliSpec.java +++ b/src/main/java/com/datadog/api/client/v1/model/SLOSliSpec.java @@ -121,6 +121,48 @@ public SLOSliSpec deserialize(JsonParser jp, DeserializationContext ctxt) log.log(Level.FINER, "Input data does not match schema 'SLOTimeSliceSpec'", e); } + // deserialize SLOCountSpec + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (SLOCountSpec.class.equals(Integer.class) + || SLOCountSpec.class.equals(Long.class) + || SLOCountSpec.class.equals(Float.class) + || SLOCountSpec.class.equals(Double.class) + || SLOCountSpec.class.equals(Boolean.class) + || SLOCountSpec.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((SLOCountSpec.class.equals(Integer.class) || SLOCountSpec.class.equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((SLOCountSpec.class.equals(Float.class) || SLOCountSpec.class.equals(Double.class)) + && (token == JsonToken.VALUE_NUMBER_FLOAT + || token == JsonToken.VALUE_NUMBER_INT)); + attemptParsing |= + (SLOCountSpec.class.equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (SLOCountSpec.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + tmp = tree.traverse(jp.getCodec()).readValueAs(SLOCountSpec.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + if (!((SLOCountSpec) tmp).unparsed) { + deserialized = tmp; + match++; + } + log.log(Level.FINER, "Input data matches schema 'SLOCountSpec'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'SLOCountSpec'", e); + } + SLOSliSpec ret = new SLOSliSpec(); if (match == 1) { ret.setActualInstance(deserialized); @@ -154,8 +196,14 @@ public SLOSliSpec(SLOTimeSliceSpec o) { setActualInstance(o); } + public SLOSliSpec(SLOCountSpec o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + static { schemas.put("SLOTimeSliceSpec", new GenericType() {}); + schemas.put("SLOCountSpec", new GenericType() {}); JSON.registerDescendants(SLOSliSpec.class, Collections.unmodifiableMap(schemas)); } @@ -166,7 +214,7 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: SLOTimeSliceSpec + * against the oneOf child schemas: SLOTimeSliceSpec, SLOCountSpec * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a * composed schema (allOf, anyOf, oneOf). @@ -177,18 +225,22 @@ public void setActualInstance(Object instance) { super.setActualInstance(instance); return; } + if (JSON.isInstanceOf(SLOCountSpec.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } if (JSON.isInstanceOf(UnparsedObject.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be SLOTimeSliceSpec"); + throw new RuntimeException("Invalid instance type. Must be SLOTimeSliceSpec, SLOCountSpec"); } /** - * Get the actual instance, which can be the following: SLOTimeSliceSpec + * Get the actual instance, which can be the following: SLOTimeSliceSpec, SLOCountSpec * - * @return The actual instance (SLOTimeSliceSpec) + * @return The actual instance (SLOTimeSliceSpec, SLOCountSpec) */ @Override public Object getActualInstance() { @@ -205,4 +257,15 @@ public Object getActualInstance() { public SLOTimeSliceSpec getSLOTimeSliceSpec() throws ClassCastException { return (SLOTimeSliceSpec) super.getActualInstance(); } + + /** + * Get the actual instance of `SLOCountSpec`. If the actual instance is not `SLOCountSpec`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `SLOCountSpec` + * @throws ClassCastException if the instance is not `SLOCountSpec` + */ + public SLOCountSpec getSLOCountSpec() throws ClassCastException { + return (SLOCountSpec) super.getActualInstance(); + } } diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java index a0e4f9b0371..b129ccbaca5 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjective.java @@ -324,9 +324,10 @@ public ServiceLevelObjective query(ServiceLevelObjectiveQuery query) { } /** - * A metric-based SLO. Required if type is metric. Note that Datadog - * only allows the sum by aggregator to be used because this will sum up all request counts - * instead of averaging them, or taking the max or min of all of those requests. + * A count-based (metric) SLO query. This field is superseded by sli_specification + * but is retained for backwards compatibility. Note that Datadog only allows the sum by + * aggregator to be used because this will sum up all request counts instead of averaging them, or + * taking the max or min of all of those requests. * * @return query */ @@ -348,7 +349,7 @@ public ServiceLevelObjective sliSpecification(SLOSliSpec sliSpecification) { } /** - * A generic SLI specification. This is currently used for time-slice SLOs only. + * A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only. * * @return sliSpecification */ diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java index aee83319b41..0bc3a61656a 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveQuery.java @@ -18,9 +18,10 @@ import java.util.Objects; /** - * A metric-based SLO. Required if type is metric. Note that Datadog - * only allows the sum by aggregator to be used because this will sum up all request counts instead - * of averaging them, or taking the max or min of all of those requests. + * A count-based (metric) SLO query. This field is superseded by sli_specification but + * is retained for backwards compatibility. Note that Datadog only allows the sum by aggregator to + * be used because this will sum up all request counts instead of averaging them, or taking the max + * or min of all of those requests. */ @JsonPropertyOrder({ ServiceLevelObjectiveQuery.JSON_PROPERTY_DENOMINATOR, diff --git a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java index dfb2e482c73..68208b7f6b9 100644 --- a/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/ServiceLevelObjectiveRequest.java @@ -217,9 +217,10 @@ public ServiceLevelObjectiveRequest query(ServiceLevelObjectiveQuery query) { } /** - * A metric-based SLO. Required if type is metric. Note that Datadog - * only allows the sum by aggregator to be used because this will sum up all request counts - * instead of averaging them, or taking the max or min of all of those requests. + * A count-based (metric) SLO query. This field is superseded by sli_specification + * but is retained for backwards compatibility. Note that Datadog only allows the sum by + * aggregator to be used because this will sum up all request counts instead of averaging them, or + * taking the max or min of all of those requests. * * @return query */ @@ -241,7 +242,7 @@ public ServiceLevelObjectiveRequest sliSpecification(SLOSliSpec sliSpecification } /** - * A generic SLI specification. This is currently used for time-slice SLOs only. + * A generic SLI specification. This is used for time-slice and count-based (metric) SLOs only. * * @return sliSpecification */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItems.java b/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItems.java index 6872437291c..ceb0a1f306f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItems.java @@ -35,8 +35,8 @@ public class CreateRulesetRequestDataAttributesRulesItems { private Boolean enabled; public static final String JSON_PROPERTY_MAPPING = "mapping"; - private JsonNullable mapping = - JsonNullable.undefined(); + private JsonNullable mapping = + JsonNullable.undefined(); public static final String JSON_PROPERTY_METADATA = "metadata"; private JsonNullable> metadata = @@ -84,37 +84,35 @@ public void setEnabled(Boolean enabled) { } public CreateRulesetRequestDataAttributesRulesItems mapping( - CreateRulesetRequestDataAttributesRulesItemsMapping mapping) { - this.mapping = JsonNullable.of(mapping); + DataAttributesRulesItemsMapping mapping) { + this.mapping = JsonNullable.of(mapping); return this; } /** - * The definition of CreateRulesetRequestDataAttributesRulesItemsMapping object. + * The definition of DataAttributesRulesItemsMapping object. * * @return mapping */ @jakarta.annotation.Nullable @JsonIgnore - public CreateRulesetRequestDataAttributesRulesItemsMapping getMapping() { + public DataAttributesRulesItemsMapping getMapping() { return mapping.orElse(null); } @JsonProperty(JSON_PROPERTY_MAPPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable - getMapping_JsonNullable() { + public JsonNullable getMapping_JsonNullable() { return mapping; } @JsonProperty(JSON_PROPERTY_MAPPING) - public void setMapping_JsonNullable( - JsonNullable mapping) { + public void setMapping_JsonNullable(JsonNullable mapping) { this.mapping = mapping; } - public void setMapping(CreateRulesetRequestDataAttributesRulesItemsMapping mapping) { - this.mapping = JsonNullable.of(mapping); + public void setMapping(DataAttributesRulesItemsMapping mapping) { + this.mapping = JsonNullable.of(mapping); } public CreateRulesetRequestDataAttributesRulesItems metadata(Map metadata) { diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsQuery.java b/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsQuery.java index eb10696fb86..8fcd61af0ea 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsQuery.java @@ -22,6 +22,7 @@ CreateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_ADDITION, CreateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_CASE_INSENSITIVITY, CreateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_IF_NOT_EXISTS, + CreateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_IF_TAG_EXISTS, CreateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_QUERY }) @jakarta.annotation.Generated( @@ -37,6 +38,9 @@ public class CreateRulesetRequestDataAttributesRulesItemsQuery { public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; private Boolean ifNotExists; + public static final String JSON_PROPERTY_IF_TAG_EXISTS = "if_tag_exists"; + private DataAttributesRulesItemsIfTagExists ifTagExists; + public static final String JSON_PROPERTY_QUERY = "query"; private String query; @@ -46,13 +50,11 @@ public CreateRulesetRequestDataAttributesRulesItemsQuery() {} public CreateRulesetRequestDataAttributesRulesItemsQuery( @JsonProperty(required = true, value = JSON_PROPERTY_ADDITION) CreateRulesetRequestDataAttributesRulesItemsQueryAddition addition, - @JsonProperty(required = true, value = JSON_PROPERTY_IF_NOT_EXISTS) Boolean ifNotExists, @JsonProperty(required = true, value = JSON_PROPERTY_QUERY) String query) { this.addition = addition; if (addition != null) { this.unparsed |= addition.unparsed; } - this.ifNotExists = ifNotExists; this.query = query; } @@ -110,20 +112,51 @@ public CreateRulesetRequestDataAttributesRulesItemsQuery ifNotExists(Boolean ifN } /** - * The query if_not_exists. + * Deprecated. Use if_tag_exists instead. The query if_not_exists + * . * * @return ifNotExists + * @deprecated */ + @Deprecated + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIfNotExists() { return ifNotExists; } + @Deprecated public void setIfNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; } + public CreateRulesetRequestDataAttributesRulesItemsQuery ifTagExists( + DataAttributesRulesItemsIfTagExists ifTagExists) { + this.ifTagExists = ifTagExists; + this.unparsed |= !ifTagExists.isValid(); + return this; + } + + /** + * The behavior when the tag already exists. + * + * @return ifTagExists + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IF_TAG_EXISTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataAttributesRulesItemsIfTagExists getIfTagExists() { + return ifTagExists; + } + + public void setIfTagExists(DataAttributesRulesItemsIfTagExists ifTagExists) { + if (!ifTagExists.isValid()) { + this.unparsed = true; + } + this.ifTagExists = ifTagExists; + } + public CreateRulesetRequestDataAttributesRulesItemsQuery query(String query) { this.query = query; return this; @@ -209,6 +242,8 @@ public boolean equals(Object o) { createRulesetRequestDataAttributesRulesItemsQuery.caseInsensitivity) && Objects.equals( this.ifNotExists, createRulesetRequestDataAttributesRulesItemsQuery.ifNotExists) + && Objects.equals( + this.ifTagExists, createRulesetRequestDataAttributesRulesItemsQuery.ifTagExists) && Objects.equals(this.query, createRulesetRequestDataAttributesRulesItemsQuery.query) && Objects.equals( this.additionalProperties, @@ -217,7 +252,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(addition, caseInsensitivity, ifNotExists, query, additionalProperties); + return Objects.hash( + addition, caseInsensitivity, ifNotExists, ifTagExists, query, additionalProperties); } @Override @@ -227,6 +263,7 @@ public String toString() { sb.append(" addition: ").append(toIndentedString(addition)).append("\n"); sb.append(" caseInsensitivity: ").append(toIndentedString(caseInsensitivity)).append("\n"); sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); + sb.append(" ifTagExists: ").append(toIndentedString(ifTagExists)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsReferenceTable.java b/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsReferenceTable.java index 7a015154f4d..de9aac6da87 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsReferenceTable.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsReferenceTable.java @@ -26,6 +26,7 @@ CreateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_CASE_INSENSITIVITY, CreateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_FIELD_PAIRS, CreateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_IF_NOT_EXISTS, + CreateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_IF_TAG_EXISTS, CreateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_SOURCE_KEYS, CreateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_TABLE_NAME }) @@ -43,6 +44,9 @@ public class CreateRulesetRequestDataAttributesRulesItemsReferenceTable { public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; private Boolean ifNotExists; + public static final String JSON_PROPERTY_IF_TAG_EXISTS = "if_tag_exists"; + private DataAttributesRulesItemsIfTagExists ifTagExists; + public static final String JSON_PROPERTY_SOURCE_KEYS = "source_keys"; private List sourceKeys = new ArrayList<>(); @@ -126,10 +130,13 @@ public CreateRulesetRequestDataAttributesRulesItemsReferenceTable ifNotExists( } /** - * The reference_table if_not_exists. + * Deprecated. Use if_tag_exists instead. The reference_table + * if_not_exists. * * @return ifNotExists + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,10 +144,37 @@ public Boolean getIfNotExists() { return ifNotExists; } + @Deprecated public void setIfNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; } + public CreateRulesetRequestDataAttributesRulesItemsReferenceTable ifTagExists( + DataAttributesRulesItemsIfTagExists ifTagExists) { + this.ifTagExists = ifTagExists; + this.unparsed |= !ifTagExists.isValid(); + return this; + } + + /** + * The behavior when the tag already exists. + * + * @return ifTagExists + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IF_TAG_EXISTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataAttributesRulesItemsIfTagExists getIfTagExists() { + return ifTagExists; + } + + public void setIfTagExists(DataAttributesRulesItemsIfTagExists ifTagExists) { + if (!ifTagExists.isValid()) { + this.unparsed = true; + } + this.ifTagExists = ifTagExists; + } + public CreateRulesetRequestDataAttributesRulesItemsReferenceTable sourceKeys( List sourceKeys) { this.sourceKeys = sourceKeys; @@ -258,6 +292,9 @@ public boolean equals(Object o) { && Objects.equals( this.ifNotExists, createRulesetRequestDataAttributesRulesItemsReferenceTable.ifNotExists) + && Objects.equals( + this.ifTagExists, + createRulesetRequestDataAttributesRulesItemsReferenceTable.ifTagExists) && Objects.equals( this.sourceKeys, createRulesetRequestDataAttributesRulesItemsReferenceTable.sourceKeys) && Objects.equals( @@ -270,7 +307,13 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - caseInsensitivity, fieldPairs, ifNotExists, sourceKeys, tableName, additionalProperties); + caseInsensitivity, + fieldPairs, + ifNotExists, + ifTagExists, + sourceKeys, + tableName, + additionalProperties); } @Override @@ -280,6 +323,7 @@ public String toString() { sb.append(" caseInsensitivity: ").append(toIndentedString(caseInsensitivity)).append("\n"); sb.append(" fieldPairs: ").append(toIndentedString(fieldPairs)).append("\n"); sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); + sb.append(" ifTagExists: ").append(toIndentedString(ifTagExists)).append("\n"); sb.append(" sourceKeys: ").append(toIndentedString(sourceKeys)).append("\n"); sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/DataAttributesRulesItemsIfTagExists.java b/src/main/java/com/datadog/api/client/v2/model/DataAttributesRulesItemsIfTagExists.java new file mode 100644 index 00000000000..7f2f8b24bb1 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/DataAttributesRulesItemsIfTagExists.java @@ -0,0 +1,63 @@ +/* + * 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 behavior when the tag already exists. */ +@JsonSerialize( + using = DataAttributesRulesItemsIfTagExists.DataAttributesRulesItemsIfTagExistsSerializer.class) +public class DataAttributesRulesItemsIfTagExists extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("append", "do_not_apply", "replace")); + + public static final DataAttributesRulesItemsIfTagExists APPEND = + new DataAttributesRulesItemsIfTagExists("append"); + public static final DataAttributesRulesItemsIfTagExists DO_NOT_APPLY = + new DataAttributesRulesItemsIfTagExists("do_not_apply"); + public static final DataAttributesRulesItemsIfTagExists REPLACE = + new DataAttributesRulesItemsIfTagExists("replace"); + + DataAttributesRulesItemsIfTagExists(String value) { + super(value, allowedValues); + } + + public static class DataAttributesRulesItemsIfTagExistsSerializer + extends StdSerializer { + public DataAttributesRulesItemsIfTagExistsSerializer( + Class t) { + super(t); + } + + public DataAttributesRulesItemsIfTagExistsSerializer() { + this(null); + } + + @Override + public void serialize( + DataAttributesRulesItemsIfTagExists value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static DataAttributesRulesItemsIfTagExists fromValue(String value) { + return new DataAttributesRulesItemsIfTagExists(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsMapping.java b/src/main/java/com/datadog/api/client/v2/model/DataAttributesRulesItemsMapping.java similarity index 64% rename from src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsMapping.java rename to src/main/java/com/datadog/api/client/v2/model/DataAttributesRulesItemsMapping.java index 76763e40189..8d4dd25f287 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateRulesetRequestDataAttributesRulesItemsMapping.java +++ b/src/main/java/com/datadog/api/client/v2/model/DataAttributesRulesItemsMapping.java @@ -19,15 +19,16 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateRulesetRequestDataAttributesRulesItemsMapping object. */ +/** The definition of DataAttributesRulesItemsMapping object. */ @JsonPropertyOrder({ - CreateRulesetRequestDataAttributesRulesItemsMapping.JSON_PROPERTY_DESTINATION_KEY, - CreateRulesetRequestDataAttributesRulesItemsMapping.JSON_PROPERTY_IF_NOT_EXISTS, - CreateRulesetRequestDataAttributesRulesItemsMapping.JSON_PROPERTY_SOURCE_KEYS + DataAttributesRulesItemsMapping.JSON_PROPERTY_DESTINATION_KEY, + DataAttributesRulesItemsMapping.JSON_PROPERTY_IF_NOT_EXISTS, + DataAttributesRulesItemsMapping.JSON_PROPERTY_IF_TAG_EXISTS, + DataAttributesRulesItemsMapping.JSON_PROPERTY_SOURCE_KEYS }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class CreateRulesetRequestDataAttributesRulesItemsMapping { +public class DataAttributesRulesItemsMapping { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DESTINATION_KEY = "destination_key"; private String destinationKey; @@ -35,22 +36,23 @@ public class CreateRulesetRequestDataAttributesRulesItemsMapping { public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; private Boolean ifNotExists; + public static final String JSON_PROPERTY_IF_TAG_EXISTS = "if_tag_exists"; + private DataAttributesRulesItemsIfTagExists ifTagExists; + public static final String JSON_PROPERTY_SOURCE_KEYS = "source_keys"; private List sourceKeys = new ArrayList<>(); - public CreateRulesetRequestDataAttributesRulesItemsMapping() {} + public DataAttributesRulesItemsMapping() {} @JsonCreator - public CreateRulesetRequestDataAttributesRulesItemsMapping( + public DataAttributesRulesItemsMapping( @JsonProperty(required = true, value = JSON_PROPERTY_DESTINATION_KEY) String destinationKey, - @JsonProperty(required = true, value = JSON_PROPERTY_IF_NOT_EXISTS) Boolean ifNotExists, @JsonProperty(required = true, value = JSON_PROPERTY_SOURCE_KEYS) List sourceKeys) { this.destinationKey = destinationKey; - this.ifNotExists = ifNotExists; this.sourceKeys = sourceKeys; } - public CreateRulesetRequestDataAttributesRulesItemsMapping destinationKey(String destinationKey) { + public DataAttributesRulesItemsMapping destinationKey(String destinationKey) { this.destinationKey = destinationKey; return this; } @@ -70,33 +72,63 @@ public void setDestinationKey(String destinationKey) { this.destinationKey = destinationKey; } - public CreateRulesetRequestDataAttributesRulesItemsMapping ifNotExists(Boolean ifNotExists) { + public DataAttributesRulesItemsMapping ifNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; return this; } /** - * The mapping if_not_exists. + * Deprecated. Use if_tag_exists instead. The mapping + * if_not_exists. * * @return ifNotExists + * @deprecated */ + @Deprecated + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIfNotExists() { return ifNotExists; } + @Deprecated public void setIfNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; } - public CreateRulesetRequestDataAttributesRulesItemsMapping sourceKeys(List sourceKeys) { + public DataAttributesRulesItemsMapping ifTagExists( + DataAttributesRulesItemsIfTagExists ifTagExists) { + this.ifTagExists = ifTagExists; + this.unparsed |= !ifTagExists.isValid(); + return this; + } + + /** + * The behavior when the tag already exists. + * + * @return ifTagExists + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IF_TAG_EXISTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataAttributesRulesItemsIfTagExists getIfTagExists() { + return ifTagExists; + } + + public void setIfTagExists(DataAttributesRulesItemsIfTagExists ifTagExists) { + if (!ifTagExists.isValid()) { + this.unparsed = true; + } + this.ifTagExists = ifTagExists; + } + + public DataAttributesRulesItemsMapping sourceKeys(List sourceKeys) { this.sourceKeys = sourceKeys; return this; } - public CreateRulesetRequestDataAttributesRulesItemsMapping addSourceKeysItem( - String sourceKeysItem) { + public DataAttributesRulesItemsMapping addSourceKeysItem(String sourceKeysItem) { this.sourceKeys.add(sourceKeysItem); return this; } @@ -128,11 +160,10 @@ public void setSourceKeys(List sourceKeys) { * * @param key The arbitrary key to set * @param value The associated value - * @return CreateRulesetRequestDataAttributesRulesItemsMapping + * @return DataAttributesRulesItemsMapping */ @JsonAnySetter - public CreateRulesetRequestDataAttributesRulesItemsMapping putAdditionalProperty( - String key, Object value) { + public DataAttributesRulesItemsMapping putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -163,9 +194,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** - * Return true if this CreateRulesetRequestDataAttributesRulesItemsMapping object is equal to o. - */ + /** Return true if this DataAttributesRulesItemsMapping object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -174,31 +203,28 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateRulesetRequestDataAttributesRulesItemsMapping - createRulesetRequestDataAttributesRulesItemsMapping = - (CreateRulesetRequestDataAttributesRulesItemsMapping) o; - return Objects.equals( - this.destinationKey, createRulesetRequestDataAttributesRulesItemsMapping.destinationKey) - && Objects.equals( - this.ifNotExists, createRulesetRequestDataAttributesRulesItemsMapping.ifNotExists) - && Objects.equals( - this.sourceKeys, createRulesetRequestDataAttributesRulesItemsMapping.sourceKeys) + DataAttributesRulesItemsMapping dataAttributesRulesItemsMapping = + (DataAttributesRulesItemsMapping) o; + return Objects.equals(this.destinationKey, dataAttributesRulesItemsMapping.destinationKey) + && Objects.equals(this.ifNotExists, dataAttributesRulesItemsMapping.ifNotExists) + && Objects.equals(this.ifTagExists, dataAttributesRulesItemsMapping.ifTagExists) + && Objects.equals(this.sourceKeys, dataAttributesRulesItemsMapping.sourceKeys) && Objects.equals( - this.additionalProperties, - createRulesetRequestDataAttributesRulesItemsMapping.additionalProperties); + this.additionalProperties, dataAttributesRulesItemsMapping.additionalProperties); } @Override public int hashCode() { - return Objects.hash(destinationKey, ifNotExists, sourceKeys, additionalProperties); + return Objects.hash(destinationKey, ifNotExists, ifTagExists, sourceKeys, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateRulesetRequestDataAttributesRulesItemsMapping {\n"); + sb.append("class DataAttributesRulesItemsMapping {\n"); sb.append(" destinationKey: ").append(toIndentedString(destinationKey)).append("\n"); sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); + sb.append(" ifTagExists: ").append(toIndentedString(ifTagExists)).append("\n"); sb.append(" sourceKeys: ").append(toIndentedString(sourceKeys)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItems.java b/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItems.java index ef8eb0ebcf2..b4910d62c69 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItems.java @@ -35,8 +35,8 @@ public class RulesetRespDataAttributesRulesItems { private Boolean enabled; public static final String JSON_PROPERTY_MAPPING = "mapping"; - private JsonNullable mapping = - JsonNullable.undefined(); + private JsonNullable mapping = + JsonNullable.undefined(); public static final String JSON_PROPERTY_METADATA = "metadata"; private JsonNullable> metadata = @@ -83,37 +83,35 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } - public RulesetRespDataAttributesRulesItems mapping( - RulesetRespDataAttributesRulesItemsMapping mapping) { - this.mapping = JsonNullable.of(mapping); + public RulesetRespDataAttributesRulesItems mapping(DataAttributesRulesItemsMapping mapping) { + this.mapping = JsonNullable.of(mapping); return this; } /** - * The definition of RulesetRespDataAttributesRulesItemsMapping object. + * The definition of DataAttributesRulesItemsMapping object. * * @return mapping */ @jakarta.annotation.Nullable @JsonIgnore - public RulesetRespDataAttributesRulesItemsMapping getMapping() { + public DataAttributesRulesItemsMapping getMapping() { return mapping.orElse(null); } @JsonProperty(JSON_PROPERTY_MAPPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getMapping_JsonNullable() { + public JsonNullable getMapping_JsonNullable() { return mapping; } @JsonProperty(JSON_PROPERTY_MAPPING) - public void setMapping_JsonNullable( - JsonNullable mapping) { + public void setMapping_JsonNullable(JsonNullable mapping) { this.mapping = mapping; } - public void setMapping(RulesetRespDataAttributesRulesItemsMapping mapping) { - this.mapping = JsonNullable.of(mapping); + public void setMapping(DataAttributesRulesItemsMapping mapping) { + this.mapping = JsonNullable.of(mapping); } public RulesetRespDataAttributesRulesItems metadata(Map metadata) { diff --git a/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsMapping.java b/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsMapping.java deleted file mode 100644 index 69faa3ecdc1..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsMapping.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** The definition of RulesetRespDataAttributesRulesItemsMapping object. */ -@JsonPropertyOrder({ - RulesetRespDataAttributesRulesItemsMapping.JSON_PROPERTY_DESTINATION_KEY, - RulesetRespDataAttributesRulesItemsMapping.JSON_PROPERTY_IF_NOT_EXISTS, - RulesetRespDataAttributesRulesItemsMapping.JSON_PROPERTY_SOURCE_KEYS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class RulesetRespDataAttributesRulesItemsMapping { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DESTINATION_KEY = "destination_key"; - private String destinationKey; - - public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; - private Boolean ifNotExists; - - public static final String JSON_PROPERTY_SOURCE_KEYS = "source_keys"; - private List sourceKeys = new ArrayList<>(); - - public RulesetRespDataAttributesRulesItemsMapping() {} - - @JsonCreator - public RulesetRespDataAttributesRulesItemsMapping( - @JsonProperty(required = true, value = JSON_PROPERTY_DESTINATION_KEY) String destinationKey, - @JsonProperty(required = true, value = JSON_PROPERTY_IF_NOT_EXISTS) Boolean ifNotExists, - @JsonProperty(required = true, value = JSON_PROPERTY_SOURCE_KEYS) List sourceKeys) { - this.destinationKey = destinationKey; - this.ifNotExists = ifNotExists; - this.sourceKeys = sourceKeys; - } - - public RulesetRespDataAttributesRulesItemsMapping destinationKey(String destinationKey) { - this.destinationKey = destinationKey; - return this; - } - - /** - * The mapping destination_key. - * - * @return destinationKey - */ - @JsonProperty(JSON_PROPERTY_DESTINATION_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDestinationKey() { - return destinationKey; - } - - public void setDestinationKey(String destinationKey) { - this.destinationKey = destinationKey; - } - - public RulesetRespDataAttributesRulesItemsMapping ifNotExists(Boolean ifNotExists) { - this.ifNotExists = ifNotExists; - return this; - } - - /** - * The mapping if_not_exists. - * - * @return ifNotExists - */ - @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIfNotExists() { - return ifNotExists; - } - - public void setIfNotExists(Boolean ifNotExists) { - this.ifNotExists = ifNotExists; - } - - public RulesetRespDataAttributesRulesItemsMapping sourceKeys(List sourceKeys) { - this.sourceKeys = sourceKeys; - return this; - } - - public RulesetRespDataAttributesRulesItemsMapping addSourceKeysItem(String sourceKeysItem) { - this.sourceKeys.add(sourceKeysItem); - return this; - } - - /** - * The mapping source_keys. - * - * @return sourceKeys - */ - @JsonProperty(JSON_PROPERTY_SOURCE_KEYS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getSourceKeys() { - return sourceKeys; - } - - public void setSourceKeys(List sourceKeys) { - this.sourceKeys = sourceKeys; - } - - /** - * 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 RulesetRespDataAttributesRulesItemsMapping - */ - @JsonAnySetter - public RulesetRespDataAttributesRulesItemsMapping 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 RulesetRespDataAttributesRulesItemsMapping object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RulesetRespDataAttributesRulesItemsMapping rulesetRespDataAttributesRulesItemsMapping = - (RulesetRespDataAttributesRulesItemsMapping) o; - return Objects.equals( - this.destinationKey, rulesetRespDataAttributesRulesItemsMapping.destinationKey) - && Objects.equals(this.ifNotExists, rulesetRespDataAttributesRulesItemsMapping.ifNotExists) - && Objects.equals(this.sourceKeys, rulesetRespDataAttributesRulesItemsMapping.sourceKeys) - && Objects.equals( - this.additionalProperties, - rulesetRespDataAttributesRulesItemsMapping.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(destinationKey, ifNotExists, sourceKeys, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RulesetRespDataAttributesRulesItemsMapping {\n"); - sb.append(" destinationKey: ").append(toIndentedString(destinationKey)).append("\n"); - sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); - sb.append(" sourceKeys: ").append(toIndentedString(sourceKeys)).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/RulesetRespDataAttributesRulesItemsQuery.java b/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsQuery.java index cefb089d159..93556da2a78 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsQuery.java @@ -22,6 +22,7 @@ RulesetRespDataAttributesRulesItemsQuery.JSON_PROPERTY_ADDITION, RulesetRespDataAttributesRulesItemsQuery.JSON_PROPERTY_CASE_INSENSITIVITY, RulesetRespDataAttributesRulesItemsQuery.JSON_PROPERTY_IF_NOT_EXISTS, + RulesetRespDataAttributesRulesItemsQuery.JSON_PROPERTY_IF_TAG_EXISTS, RulesetRespDataAttributesRulesItemsQuery.JSON_PROPERTY_QUERY }) @jakarta.annotation.Generated( @@ -37,6 +38,9 @@ public class RulesetRespDataAttributesRulesItemsQuery { public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; private Boolean ifNotExists; + public static final String JSON_PROPERTY_IF_TAG_EXISTS = "if_tag_exists"; + private DataAttributesRulesItemsIfTagExists ifTagExists; + public static final String JSON_PROPERTY_QUERY = "query"; private String query; @@ -46,13 +50,11 @@ public RulesetRespDataAttributesRulesItemsQuery() {} public RulesetRespDataAttributesRulesItemsQuery( @JsonProperty(required = true, value = JSON_PROPERTY_ADDITION) RulesetRespDataAttributesRulesItemsQueryAddition addition, - @JsonProperty(required = true, value = JSON_PROPERTY_IF_NOT_EXISTS) Boolean ifNotExists, @JsonProperty(required = true, value = JSON_PROPERTY_QUERY) String query) { this.addition = addition; if (addition != null) { this.unparsed |= addition.unparsed; } - this.ifNotExists = ifNotExists; this.query = query; } @@ -108,20 +110,51 @@ public RulesetRespDataAttributesRulesItemsQuery ifNotExists(Boolean ifNotExists) } /** - * The query if_not_exists. + * Deprecated. Use if_tag_exists instead. The query if_not_exists + * . * * @return ifNotExists + * @deprecated */ + @Deprecated + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIfNotExists() { return ifNotExists; } + @Deprecated public void setIfNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; } + public RulesetRespDataAttributesRulesItemsQuery ifTagExists( + DataAttributesRulesItemsIfTagExists ifTagExists) { + this.ifTagExists = ifTagExists; + this.unparsed |= !ifTagExists.isValid(); + return this; + } + + /** + * The behavior when the tag already exists. + * + * @return ifTagExists + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IF_TAG_EXISTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataAttributesRulesItemsIfTagExists getIfTagExists() { + return ifTagExists; + } + + public void setIfTagExists(DataAttributesRulesItemsIfTagExists ifTagExists) { + if (!ifTagExists.isValid()) { + this.unparsed = true; + } + this.ifTagExists = ifTagExists; + } + public RulesetRespDataAttributesRulesItemsQuery query(String query) { this.query = query; return this; @@ -203,6 +236,7 @@ public boolean equals(Object o) { && Objects.equals( this.caseInsensitivity, rulesetRespDataAttributesRulesItemsQuery.caseInsensitivity) && Objects.equals(this.ifNotExists, rulesetRespDataAttributesRulesItemsQuery.ifNotExists) + && Objects.equals(this.ifTagExists, rulesetRespDataAttributesRulesItemsQuery.ifTagExists) && Objects.equals(this.query, rulesetRespDataAttributesRulesItemsQuery.query) && Objects.equals( this.additionalProperties, @@ -211,7 +245,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(addition, caseInsensitivity, ifNotExists, query, additionalProperties); + return Objects.hash( + addition, caseInsensitivity, ifNotExists, ifTagExists, query, additionalProperties); } @Override @@ -221,6 +256,7 @@ public String toString() { sb.append(" addition: ").append(toIndentedString(addition)).append("\n"); sb.append(" caseInsensitivity: ").append(toIndentedString(caseInsensitivity)).append("\n"); sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); + sb.append(" ifTagExists: ").append(toIndentedString(ifTagExists)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsReferenceTable.java b/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsReferenceTable.java index 92ec35fd453..6ceb63fbbad 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsReferenceTable.java +++ b/src/main/java/com/datadog/api/client/v2/model/RulesetRespDataAttributesRulesItemsReferenceTable.java @@ -24,6 +24,7 @@ RulesetRespDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_CASE_INSENSITIVITY, RulesetRespDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_FIELD_PAIRS, RulesetRespDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_IF_NOT_EXISTS, + RulesetRespDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_IF_TAG_EXISTS, RulesetRespDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_SOURCE_KEYS, RulesetRespDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_TABLE_NAME }) @@ -41,6 +42,9 @@ public class RulesetRespDataAttributesRulesItemsReferenceTable { public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; private Boolean ifNotExists; + public static final String JSON_PROPERTY_IF_TAG_EXISTS = "if_tag_exists"; + private DataAttributesRulesItemsIfTagExists ifTagExists; + public static final String JSON_PROPERTY_SOURCE_KEYS = "source_keys"; private List sourceKeys = new ArrayList<>(); @@ -120,10 +124,13 @@ public RulesetRespDataAttributesRulesItemsReferenceTable ifNotExists(Boolean ifN } /** - * The reference_table if_not_exists. + * Deprecated. Use if_tag_exists instead. The reference_table + * if_not_exists. * * @return ifNotExists + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -131,10 +138,37 @@ public Boolean getIfNotExists() { return ifNotExists; } + @Deprecated public void setIfNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; } + public RulesetRespDataAttributesRulesItemsReferenceTable ifTagExists( + DataAttributesRulesItemsIfTagExists ifTagExists) { + this.ifTagExists = ifTagExists; + this.unparsed |= !ifTagExists.isValid(); + return this; + } + + /** + * The behavior when the tag already exists. + * + * @return ifTagExists + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IF_TAG_EXISTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataAttributesRulesItemsIfTagExists getIfTagExists() { + return ifTagExists; + } + + public void setIfTagExists(DataAttributesRulesItemsIfTagExists ifTagExists) { + if (!ifTagExists.isValid()) { + this.unparsed = true; + } + this.ifTagExists = ifTagExists; + } + public RulesetRespDataAttributesRulesItemsReferenceTable sourceKeys(List sourceKeys) { this.sourceKeys = sourceKeys; return this; @@ -247,6 +281,8 @@ public boolean equals(Object o) { this.fieldPairs, rulesetRespDataAttributesRulesItemsReferenceTable.fieldPairs) && Objects.equals( this.ifNotExists, rulesetRespDataAttributesRulesItemsReferenceTable.ifNotExists) + && Objects.equals( + this.ifTagExists, rulesetRespDataAttributesRulesItemsReferenceTable.ifTagExists) && Objects.equals( this.sourceKeys, rulesetRespDataAttributesRulesItemsReferenceTable.sourceKeys) && Objects.equals( @@ -259,7 +295,13 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - caseInsensitivity, fieldPairs, ifNotExists, sourceKeys, tableName, additionalProperties); + caseInsensitivity, + fieldPairs, + ifNotExists, + ifTagExists, + sourceKeys, + tableName, + additionalProperties); } @Override @@ -269,6 +311,7 @@ public String toString() { sb.append(" caseInsensitivity: ").append(toIndentedString(caseInsensitivity)).append("\n"); sb.append(" fieldPairs: ").append(toIndentedString(fieldPairs)).append("\n"); sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); + sb.append(" ifTagExists: ").append(toIndentedString(ifTagExists)).append("\n"); sb.append(" sourceKeys: ").append(toIndentedString(sourceKeys)).append("\n"); sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItems.java b/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItems.java index a7d70440dd5..ab1a3be3941 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItems.java @@ -35,8 +35,8 @@ public class UpdateRulesetRequestDataAttributesRulesItems { private Boolean enabled; public static final String JSON_PROPERTY_MAPPING = "mapping"; - private JsonNullable mapping = - JsonNullable.undefined(); + private JsonNullable mapping = + JsonNullable.undefined(); public static final String JSON_PROPERTY_METADATA = "metadata"; private JsonNullable> metadata = @@ -84,37 +84,35 @@ public void setEnabled(Boolean enabled) { } public UpdateRulesetRequestDataAttributesRulesItems mapping( - UpdateRulesetRequestDataAttributesRulesItemsMapping mapping) { - this.mapping = JsonNullable.of(mapping); + DataAttributesRulesItemsMapping mapping) { + this.mapping = JsonNullable.of(mapping); return this; } /** - * The definition of UpdateRulesetRequestDataAttributesRulesItemsMapping object. + * The definition of DataAttributesRulesItemsMapping object. * * @return mapping */ @jakarta.annotation.Nullable @JsonIgnore - public UpdateRulesetRequestDataAttributesRulesItemsMapping getMapping() { + public DataAttributesRulesItemsMapping getMapping() { return mapping.orElse(null); } @JsonProperty(JSON_PROPERTY_MAPPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable - getMapping_JsonNullable() { + public JsonNullable getMapping_JsonNullable() { return mapping; } @JsonProperty(JSON_PROPERTY_MAPPING) - public void setMapping_JsonNullable( - JsonNullable mapping) { + public void setMapping_JsonNullable(JsonNullable mapping) { this.mapping = mapping; } - public void setMapping(UpdateRulesetRequestDataAttributesRulesItemsMapping mapping) { - this.mapping = JsonNullable.of(mapping); + public void setMapping(DataAttributesRulesItemsMapping mapping) { + this.mapping = JsonNullable.of(mapping); } public UpdateRulesetRequestDataAttributesRulesItems metadata(Map metadata) { diff --git a/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsMapping.java b/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsMapping.java deleted file mode 100644 index a8fd9da86b3..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsMapping.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** The definition of UpdateRulesetRequestDataAttributesRulesItemsMapping object. */ -@JsonPropertyOrder({ - UpdateRulesetRequestDataAttributesRulesItemsMapping.JSON_PROPERTY_DESTINATION_KEY, - UpdateRulesetRequestDataAttributesRulesItemsMapping.JSON_PROPERTY_IF_NOT_EXISTS, - UpdateRulesetRequestDataAttributesRulesItemsMapping.JSON_PROPERTY_SOURCE_KEYS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class UpdateRulesetRequestDataAttributesRulesItemsMapping { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DESTINATION_KEY = "destination_key"; - private String destinationKey; - - public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; - private Boolean ifNotExists; - - public static final String JSON_PROPERTY_SOURCE_KEYS = "source_keys"; - private List sourceKeys = new ArrayList<>(); - - public UpdateRulesetRequestDataAttributesRulesItemsMapping() {} - - @JsonCreator - public UpdateRulesetRequestDataAttributesRulesItemsMapping( - @JsonProperty(required = true, value = JSON_PROPERTY_DESTINATION_KEY) String destinationKey, - @JsonProperty(required = true, value = JSON_PROPERTY_IF_NOT_EXISTS) Boolean ifNotExists, - @JsonProperty(required = true, value = JSON_PROPERTY_SOURCE_KEYS) List sourceKeys) { - this.destinationKey = destinationKey; - this.ifNotExists = ifNotExists; - this.sourceKeys = sourceKeys; - } - - public UpdateRulesetRequestDataAttributesRulesItemsMapping destinationKey(String destinationKey) { - this.destinationKey = destinationKey; - return this; - } - - /** - * The mapping destination_key. - * - * @return destinationKey - */ - @JsonProperty(JSON_PROPERTY_DESTINATION_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDestinationKey() { - return destinationKey; - } - - public void setDestinationKey(String destinationKey) { - this.destinationKey = destinationKey; - } - - public UpdateRulesetRequestDataAttributesRulesItemsMapping ifNotExists(Boolean ifNotExists) { - this.ifNotExists = ifNotExists; - return this; - } - - /** - * The mapping if_not_exists. - * - * @return ifNotExists - */ - @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIfNotExists() { - return ifNotExists; - } - - public void setIfNotExists(Boolean ifNotExists) { - this.ifNotExists = ifNotExists; - } - - public UpdateRulesetRequestDataAttributesRulesItemsMapping sourceKeys(List sourceKeys) { - this.sourceKeys = sourceKeys; - return this; - } - - public UpdateRulesetRequestDataAttributesRulesItemsMapping addSourceKeysItem( - String sourceKeysItem) { - this.sourceKeys.add(sourceKeysItem); - return this; - } - - /** - * The mapping source_keys. - * - * @return sourceKeys - */ - @JsonProperty(JSON_PROPERTY_SOURCE_KEYS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getSourceKeys() { - return sourceKeys; - } - - public void setSourceKeys(List sourceKeys) { - this.sourceKeys = sourceKeys; - } - - /** - * 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 UpdateRulesetRequestDataAttributesRulesItemsMapping - */ - @JsonAnySetter - public UpdateRulesetRequestDataAttributesRulesItemsMapping 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 UpdateRulesetRequestDataAttributesRulesItemsMapping object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateRulesetRequestDataAttributesRulesItemsMapping - updateRulesetRequestDataAttributesRulesItemsMapping = - (UpdateRulesetRequestDataAttributesRulesItemsMapping) o; - return Objects.equals( - this.destinationKey, updateRulesetRequestDataAttributesRulesItemsMapping.destinationKey) - && Objects.equals( - this.ifNotExists, updateRulesetRequestDataAttributesRulesItemsMapping.ifNotExists) - && Objects.equals( - this.sourceKeys, updateRulesetRequestDataAttributesRulesItemsMapping.sourceKeys) - && Objects.equals( - this.additionalProperties, - updateRulesetRequestDataAttributesRulesItemsMapping.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(destinationKey, ifNotExists, sourceKeys, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateRulesetRequestDataAttributesRulesItemsMapping {\n"); - sb.append(" destinationKey: ").append(toIndentedString(destinationKey)).append("\n"); - sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); - sb.append(" sourceKeys: ").append(toIndentedString(sourceKeys)).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/UpdateRulesetRequestDataAttributesRulesItemsQuery.java b/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsQuery.java index bf8dfefb238..5c6f8c7a7f8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsQuery.java @@ -22,6 +22,7 @@ UpdateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_ADDITION, UpdateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_CASE_INSENSITIVITY, UpdateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_IF_NOT_EXISTS, + UpdateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_IF_TAG_EXISTS, UpdateRulesetRequestDataAttributesRulesItemsQuery.JSON_PROPERTY_QUERY }) @jakarta.annotation.Generated( @@ -37,6 +38,9 @@ public class UpdateRulesetRequestDataAttributesRulesItemsQuery { public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; private Boolean ifNotExists; + public static final String JSON_PROPERTY_IF_TAG_EXISTS = "if_tag_exists"; + private DataAttributesRulesItemsIfTagExists ifTagExists; + public static final String JSON_PROPERTY_QUERY = "query"; private String query; @@ -46,13 +50,11 @@ public UpdateRulesetRequestDataAttributesRulesItemsQuery() {} public UpdateRulesetRequestDataAttributesRulesItemsQuery( @JsonProperty(required = true, value = JSON_PROPERTY_ADDITION) UpdateRulesetRequestDataAttributesRulesItemsQueryAddition addition, - @JsonProperty(required = true, value = JSON_PROPERTY_IF_NOT_EXISTS) Boolean ifNotExists, @JsonProperty(required = true, value = JSON_PROPERTY_QUERY) String query) { this.addition = addition; if (addition != null) { this.unparsed |= addition.unparsed; } - this.ifNotExists = ifNotExists; this.query = query; } @@ -110,20 +112,51 @@ public UpdateRulesetRequestDataAttributesRulesItemsQuery ifNotExists(Boolean ifN } /** - * The query if_not_exists. + * Deprecated. Use if_tag_exists instead. The query if_not_exists + * . * * @return ifNotExists + * @deprecated */ + @Deprecated + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIfNotExists() { return ifNotExists; } + @Deprecated public void setIfNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; } + public UpdateRulesetRequestDataAttributesRulesItemsQuery ifTagExists( + DataAttributesRulesItemsIfTagExists ifTagExists) { + this.ifTagExists = ifTagExists; + this.unparsed |= !ifTagExists.isValid(); + return this; + } + + /** + * The behavior when the tag already exists. + * + * @return ifTagExists + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IF_TAG_EXISTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataAttributesRulesItemsIfTagExists getIfTagExists() { + return ifTagExists; + } + + public void setIfTagExists(DataAttributesRulesItemsIfTagExists ifTagExists) { + if (!ifTagExists.isValid()) { + this.unparsed = true; + } + this.ifTagExists = ifTagExists; + } + public UpdateRulesetRequestDataAttributesRulesItemsQuery query(String query) { this.query = query; return this; @@ -209,6 +242,8 @@ public boolean equals(Object o) { updateRulesetRequestDataAttributesRulesItemsQuery.caseInsensitivity) && Objects.equals( this.ifNotExists, updateRulesetRequestDataAttributesRulesItemsQuery.ifNotExists) + && Objects.equals( + this.ifTagExists, updateRulesetRequestDataAttributesRulesItemsQuery.ifTagExists) && Objects.equals(this.query, updateRulesetRequestDataAttributesRulesItemsQuery.query) && Objects.equals( this.additionalProperties, @@ -217,7 +252,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(addition, caseInsensitivity, ifNotExists, query, additionalProperties); + return Objects.hash( + addition, caseInsensitivity, ifNotExists, ifTagExists, query, additionalProperties); } @Override @@ -227,6 +263,7 @@ public String toString() { sb.append(" addition: ").append(toIndentedString(addition)).append("\n"); sb.append(" caseInsensitivity: ").append(toIndentedString(caseInsensitivity)).append("\n"); sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); + sb.append(" ifTagExists: ").append(toIndentedString(ifTagExists)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.java b/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.java index bfe4bcb2daa..1f196e28ff2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.java +++ b/src/main/java/com/datadog/api/client/v2/model/UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.java @@ -26,6 +26,7 @@ UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_CASE_INSENSITIVITY, UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_FIELD_PAIRS, UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_IF_NOT_EXISTS, + UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_IF_TAG_EXISTS, UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_SOURCE_KEYS, UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.JSON_PROPERTY_TABLE_NAME }) @@ -43,6 +44,9 @@ public class UpdateRulesetRequestDataAttributesRulesItemsReferenceTable { public static final String JSON_PROPERTY_IF_NOT_EXISTS = "if_not_exists"; private Boolean ifNotExists; + public static final String JSON_PROPERTY_IF_TAG_EXISTS = "if_tag_exists"; + private DataAttributesRulesItemsIfTagExists ifTagExists; + public static final String JSON_PROPERTY_SOURCE_KEYS = "source_keys"; private List sourceKeys = new ArrayList<>(); @@ -126,10 +130,13 @@ public UpdateRulesetRequestDataAttributesRulesItemsReferenceTable ifNotExists( } /** - * The reference_table if_not_exists. + * Deprecated. Use if_tag_exists instead. The reference_table + * if_not_exists. * * @return ifNotExists + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IF_NOT_EXISTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,10 +144,37 @@ public Boolean getIfNotExists() { return ifNotExists; } + @Deprecated public void setIfNotExists(Boolean ifNotExists) { this.ifNotExists = ifNotExists; } + public UpdateRulesetRequestDataAttributesRulesItemsReferenceTable ifTagExists( + DataAttributesRulesItemsIfTagExists ifTagExists) { + this.ifTagExists = ifTagExists; + this.unparsed |= !ifTagExists.isValid(); + return this; + } + + /** + * The behavior when the tag already exists. + * + * @return ifTagExists + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IF_TAG_EXISTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DataAttributesRulesItemsIfTagExists getIfTagExists() { + return ifTagExists; + } + + public void setIfTagExists(DataAttributesRulesItemsIfTagExists ifTagExists) { + if (!ifTagExists.isValid()) { + this.unparsed = true; + } + this.ifTagExists = ifTagExists; + } + public UpdateRulesetRequestDataAttributesRulesItemsReferenceTable sourceKeys( List sourceKeys) { this.sourceKeys = sourceKeys; @@ -258,6 +292,9 @@ public boolean equals(Object o) { && Objects.equals( this.ifNotExists, updateRulesetRequestDataAttributesRulesItemsReferenceTable.ifNotExists) + && Objects.equals( + this.ifTagExists, + updateRulesetRequestDataAttributesRulesItemsReferenceTable.ifTagExists) && Objects.equals( this.sourceKeys, updateRulesetRequestDataAttributesRulesItemsReferenceTable.sourceKeys) && Objects.equals( @@ -270,7 +307,13 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - caseInsensitivity, fieldPairs, ifNotExists, sourceKeys, tableName, additionalProperties); + caseInsensitivity, + fieldPairs, + ifNotExists, + ifTagExists, + sourceKeys, + tableName, + additionalProperties); } @Override @@ -280,6 +323,7 @@ public String toString() { sb.append(" caseInsensitivity: ").append(toIndentedString(caseInsensitivity)).append("\n"); sb.append(" fieldPairs: ").append(toIndentedString(fieldPairs)).append("\n"); sb.append(" ifNotExists: ").append(toIndentedString(ifNotExists)).append("\n"); + sb.append(" ifTagExists: ").append(toIndentedString(ifTagExists)).append("\n"); sb.append(" sourceKeys: ").append(toIndentedString(sourceKeys)).append("\n"); sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.freeze new file mode 100644 index 00000000000..6f05e9c1d1d --- /dev/null +++ b/src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.freeze @@ -0,0 +1 @@ +2026-02-05T20:07:38.100Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.json new file mode 100644 index 00000000000..a4c7a970722 --- /dev/null +++ b/src/test/resources/cassettes/features/v1/Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response.json @@ -0,0 +1,58 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"description\": \"Metric SLO using sli_specification\", \"name\": \"Test-Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response-1770322058\", \"sli_specification\": {\"count\": {\"good_events_formula\": {\"formula\": \"query1 - query2\"}, \"queries\": [{\"data_source\": \"metrics\", \"name\": \"query1\", \"query\": \"sum:httpservice.hits{*}.as_count()\"}, {\"data_source\": \"metrics\", \"name\": \"query2\", \"query\": \"sum:httpservice.errors{*}.as_count()\"}], \"total_events_formula\": {\"formula\": \"query1\"}}}, \"tags\": [\"env:prod\", \"type:count\"], \"target_threshold\": 99, \"thresholds\": [{\"target\": 99.0, \"target_display\": \"99.0\", \"timeframe\": \"7d\", \"warning\": 99.5, \"warning_display\": \"99.5\"}], \"timeframe\": \"7d\", \"type\": \"metric\", \"warning_threshold\": 99.5}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v1/slo", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":[{\"id\":\"6e49f8aa9883507dbc719f00eede5a5d\",\"name\":\"Test-Create_a_new_metric_SLO_object_using_sli_specification_returns_OK_response-1770322058\",\"tags\":[\"env:prod\",\"type:count\"],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":99.0,\"target_display\":\"99.\",\"warning\":99.5,\"warning_display\":\"99.5\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"Metric SLO using sli_specification\",\"timeframe\":\"7d\",\"warning_threshold\":99.5,\"target_threshold\":99,\"query\":{\"numerator\":\"sum:httpservice.hits{*}.as_count() - sum:httpservice.errors{*}.as_count()\",\"denominator\":\"sum:httpservice.hits{*}.as_count()\"},\"creator\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"},\"created_at\":1770322058,\"modified_at\":1770322058,\"sli_specification\":{\"count\":{\"good_events_formula\":{\"formula\":\"query1 - query2\"},\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:httpservice.hits{*}.as_count()\"},{\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"sum:httpservice.errors{*}.as_count()\"}],\"total_events_formula\":{\"formula\":\"query1\"}}}}],\"error\":null}\n", + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "fc56381b-bf9d-c291-6659-7c47c77e8a46" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v1/slo/6e49f8aa9883507dbc719f00eede5a5d", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":[\"6e49f8aa9883507dbc719f00eede5a5d\"],\"error\":null}\n", + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "1820d1ed-78bd-f49f-fd6e-1b42da76547c" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_deserializes_successfully.json b/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_deserializes_successfully.json index 0b1cdf6a6a8..dbf89c929d7 100644 --- a/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_deserializes_successfully.json +++ b/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_deserializes_successfully.json @@ -28,6 +28,6 @@ "timeToLive": { "unlimited": true }, - "id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e" + "id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_for_your_organization_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_for_your_organization_returns_OK_response.json index 91c8275f382..e94edfb7099 100644 --- a/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_for_your_organization_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_for_your_organization_returns_OK_response.json @@ -28,6 +28,6 @@ "timeToLive": { "unlimited": true }, - "id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d" + "id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json index 1489fb9e00e..907a2641363 100644 --- a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json +++ b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "3f83caea-c405-97df-c554-ee2d9f9e4f01" + "id": "3f83caea-c405-97df-c554-ee2d9f9e4f02" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json index 45e484f0b48..d03bf9ca97e 100644 --- a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "3f83caea-c405-97df-c554-ee2d9f9e4f02" + "id": "3f83caea-c405-97df-c554-ee2d9f9e4f01" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_AWS_Account_object_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_AWS_Account_object_response.json index bc99e6e9183..97e4959085e 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_AWS_Account_object_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Create_account_config_returns_AWS_Account_object_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "c206b9cd-771e-14f0-5d18-42a3a48556cf" + "id": "c206b9cd-771e-14f0-5d18-42a3a48556ce" }, { "httpRequest": { 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 af01fdb67c5..1be13c1c8f8 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-0daa19dc9eec" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eed" }, { "httpRequest": { @@ -57,7 +57,7 @@ "timeToLive": { "unlimited": true }, - "id": "c206b9cd-771e-14f0-5d18-42a3a48556ce" + "id": "c206b9cd-771e-14f0-5d18-42a3a48556cf" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Bad_Request_response.json index c82b6c27f29..a42ef29bfae 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Delete_account_config_returns_Bad_Request_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "73fd406e-d686-10bd-50ee-83f2c499e8a9" + "id": "73fd406e-d686-10bd-50ee-83f2c499e8a8" } ] \ No newline at end of file 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..20187b03f7f 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-0daa19dc9eea" }, { "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 aa5b0a6e9b8..89c80bd879e 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-0daa19dc9eed" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9ee9" }, { "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 efb480e06b4..7bf88c684fb 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-ff3630e3a2cc" + "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2ce" } ] \ 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 b06edb7febf..f02f71207af 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-0daa19dc9eea" + "id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eeb" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Bad_Request_response.json index 87cb96a7640..6352d5f0102 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Bad_Request_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "3d4d0603-9fed-1cc5-8004-086b9b6ef690" + "id": "3d4d0603-9fed-1cc5-8004-086b9b6ef691" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Not_Found_response.json index 55368f4ae1c..7e5c7b1234d 100644 --- a/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/AWS_Integration_Get_account_config_returns_Not_Found_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "9b33b83c-c8bb-714f-cf71-33ab2f3af9d4" + "id": "9b33b83c-c8bb-714f-cf71-33ab2f3af9d3" } ] \ No newline at end of file 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 96ea2f1d661..7711ea26b7b 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-4a5c3a301d0f" + "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0e" } ] \ 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/Archive_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json index 73ccee50ec7..ff390c55dd3 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": "79babc38-7a70-5347-c8a6-73b0e70145ea" + "id": "79babc38-7a70-5347-c8a6-73b0e70145ed" }, { "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 4462748bb01..95a63801c5f 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": "79babc38-7a70-5347-c8a6-73b0e70145f0" + "id": "79babc38-7a70-5347-c8a6-73b0e70145e9" }, { "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 97d2e012fb0..1009eda9cb4 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": "79babc38-7a70-5347-c8a6-73b0e70145f2" + "id": "79babc38-7a70-5347-c8a6-73b0e70145ec" }, { "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 c791186e6fd..72decbcf558 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": "79babc38-7a70-5347-c8a6-73b0e70145fd" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f5" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_Bad_Request_response.json index 3e6caee50a0..33f481ce3be 100644 --- a/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d31" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_OK_response.json index b8c9cddb379..3bf5cd3a7c1 100644 --- a/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Bulk_delete_datastore_items_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2e" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d30" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Bulk_write_datastore_items_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Bulk_write_datastore_items_returns_Bad_Request_response.json index 65e125afa4a..d2aaa4405eb 100644 --- a/src/test/resources/cassettes/features/v2/Bulk_write_datastore_items_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Bulk_write_datastore_items_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d33" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d31" }, { "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 8df6e835fb8..f5cf418e965 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": "4c138fa0-d834-5972-8bd7-894a659525ac" + "id": "4c138fa0-d834-5972-8bd7-894a659525ae" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Comment_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Comment_case_returns_Bad_Request_response.json index ad9498044cf..8c97b2392b3 100644 --- a/src/test/resources/cassettes/features/v2/Comment_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Comment_case_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145f3" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f6" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Comment_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Comment_case_returns_OK_response.json index 7a1d8329345..58c1764cc21 100644 --- a/src/test/resources/cassettes/features/v2/Comment_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Comment_case_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145ed" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f3" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_App_returns_Created_response.json b/src/test/resources/cassettes/features/v2/Create_App_returns_Created_response.json index 12d11a05f48..d78d4e863c8 100644 --- a/src/test/resources/cassettes/features/v2/Create_App_returns_Created_response.json +++ b/src/test/resources/cassettes/features/v2/Create_App_returns_Created_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "c782b1f3-1b03-d50f-8fcd-12e51226c50c" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c512" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_GCP_scan_options_returns_Agentless_scan_options_enabled_successfully_response.json b/src/test/resources/cassettes/features/v2/Create_GCP_scan_options_returns_Agentless_scan_options_enabled_successfully_response.json index 25b85370788..848565e096f 100644 --- a/src/test/resources/cassettes/features/v2/Create_GCP_scan_options_returns_Agentless_scan_options_enabled_successfully_response.json +++ b/src/test/resources/cassettes/features/v2/Create_GCP_scan_options_returns_Agentless_scan_options_enabled_successfully_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "95d55fc8-65c9-599d-fc62-5922c335758f" + "id": "95d55fc8-65c9-599d-fc62-5922c3357590" }, { "httpRequest": { @@ -48,6 +48,6 @@ "timeToLive": { "unlimited": true }, - "id": "7e1fd6df-f1a0-70b4-90c2-13c11f689f82" + "id": "7e1fd6df-f1a0-70b4-90c2-13c11f689f83" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_Conflict_response.json b/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_Conflict_response.json index 579f9d82f26..0f1fb58adbb 100644 --- a/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_Conflict_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_Conflict_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae46" + "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae44" }, { "httpRequest": { @@ -57,7 +57,7 @@ "timeToLive": { "unlimited": true }, - "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae47" + "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae45" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_OK_response.json index c6e2a2c6b52..2e9b172f720 100644 --- a/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Org_Connection_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae45" + "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae49" }, { "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 0735776ab7d..052e9a267e7 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-f707c3b51e7f" + "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 dfbeb4c7e2f..335179625bd 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-f707c3b51e7a" + "id": "01611a93-5e74-0630-3c51-f707c3b51e83" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238a9f" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa5" }, { "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 1c04e0309ee..f545b0e20ae 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-f707c3b51e81" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7b" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa4" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238a9f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_with_should_save_match_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_with_should_save_match_returns_OK_response.json index ef83201b336..e84757a0280 100644 --- a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_with_should_save_match_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_with_should_save_match_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e85" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7c" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa7" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa0" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_a_custom_framework_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_a_custom_framework_returns_OK_response.json index ad63cd81994..09067379e94 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_custom_framework_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_custom_framework_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "13fe9685-b072-5fe0-c841-4499a9e71c72" + "id": "13fe9685-b072-5fe0-c841-4499a9e71c71" }, { "httpRequest": { @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "e535722a-99e3-30cf-49f7-2d093bd78b3b" + "id": "e535722a-99e3-30cf-49f7-2d093bd78b3a" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_dataset_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_a_dataset_returns_OK_response.json index 94ec04c070e..fba8b2ccd41 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_dataset_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_dataset_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "32c558cf-4a2e-f914-f443-ab94000addcf" + "id": "32c558cf-4a2e-f914-f443-ab94000addcd" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_a_restriction_query_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_a_restriction_query_returns_OK_response.json index 7753c1c20c2..992baa6ee80 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_restriction_query_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_restriction_query_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "eb3b308b-3d56-9ef8-4096-dd7718f51860" + "id": "eb3b308b-3d56-9ef8-4096-dd7718f51862" }, { "httpRequest": { 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 c7a019ef829..19dc53b7c6a 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": "479ab602-1a6a-ff9c-cfae-4a71849b3ce5" + "id": "479ab602-1a6a-ff9c-cfae-4a71849b3ce4" }, { "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 ea79c480261..a87bbf225e9 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-e4d7e0833bd7" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd3" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_case_for_security_finding_returns_Created_response.json b/src/test/resources/cassettes/features/v2/Create_case_for_security_finding_returns_Created_response.json index 7eed52fb390..3186336472d 100644 --- a/src/test/resources/cassettes/features/v2/Create_case_for_security_finding_returns_Created_response.json +++ b/src/test/resources/cassettes/features/v2/Create_case_for_security_finding_returns_Created_response.json @@ -52,6 +52,6 @@ "timeToLive": { "unlimited": true }, - "id": "4e58c44b-f265-fde4-198b-af61fd50c0a7" + "id": "4e58c44b-f265-fde4-198b-af61fd50c0a6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_cases_for_security_findings_returns_Created_response.json b/src/test/resources/cassettes/features/v2/Create_cases_for_security_findings_returns_Created_response.json index 7b6e009c016..ce5258eed5e 100644 --- a/src/test/resources/cassettes/features/v2/Create_cases_for_security_findings_returns_Created_response.json +++ b/src/test/resources/cassettes/features/v2/Create_cases_for_security_findings_returns_Created_response.json @@ -52,6 +52,6 @@ "timeToLive": { "unlimited": true }, - "id": "4e58c44b-f265-fde4-198b-af61fd50c0a6" + "id": "4e58c44b-f265-fde4-198b-af61fd50c0a7" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_Bad_Request_response.json index c312b3face8..e7858392bb2 100644 --- a/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6466" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6464" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_CREATED_response.json b/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_CREATED_response.json index 2ce378fae66..76a037f2ed4 100644 --- a/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_CREATED_response.json +++ b/src/test/resources/cassettes/features/v2/Create_custom_attribute_config_for_a_case_type_returns_CREATED_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af646a" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6467" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_incident_notification_rule_returns_Created_response.json b/src/test/resources/cassettes/features/v2/Create_incident_notification_rule_returns_Created_response.json index c1f9f6bc7f4..c5336c2a98d 100644 --- a/src/test/resources/cassettes/features/v2/Create_incident_notification_rule_returns_Created_response.json +++ b/src/test/resources/cassettes/features/v2/Create_incident_notification_rule_returns_Created_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd6" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bdc" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_incident_notification_template_returns_Created_response.json b/src/test/resources/cassettes/features/v2/Create_incident_notification_template_returns_Created_response.json index 468e18c54bc..124b7f3932e 100644 --- a/src/test/resources/cassettes/features/v2/Create_incident_notification_template_returns_Created_response.json +++ b/src/test/resources/cassettes/features/v2/Create_incident_notification_template_returns_Created_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd9" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bdb" }, { "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 036e7ac60ea..3fbaa0291c3 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-d650bb892172" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze new file mode 100644 index 00000000000..ed9c47c8e2d --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze @@ -0,0 +1 @@ +2026-02-04T16:26:04.110Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json new file mode 100644 index 00000000000..51f12b65b71 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Create_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json @@ -0,0 +1,32 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"enabled\":true,\"rules\":[{\"enabled\":true,\"mapping\":null,\"name\":\"Add Cost Center Tag\",\"query\":{\"addition\":{\"key\":\"cost_center\",\"value\":\"engineering\"},\"case_insensitivity\":false,\"if_tag_exists\":\"replace\",\"query\":\"account_id:\\\"123456789\\\" AND service:\\\"web-api\\\"\"},\"reference_table\":null}]},\"id\":\"New Ruleset\",\"type\":\"create_ruleset\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/tags/enrichment", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"ee10c3ff-312f-464c-b4f6-46adaa6d00a1\",\"type\":\"ruleset\",\"attributes\":{\"created\":{\"seconds\":1759947966,\"nanos\":679638000},\"enabled\":true,\"last_modified_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"modified\":{\"seconds\":1759947966,\"nanos\":679638000},\"name\":\"New Ruleset\",\"position\":1,\"rules\":[{\"name\":\"Add Cost Center Tag\",\"enabled\":true,\"query\":{\"query\":\"account_id:\\\"123456789\\\" AND service:\\\"web-api\\\"\",\"addition\":{\"key\":\"cost_center\",\"value\":\"engineering\"},\"if_tag_exists\":\"replace\",\"case_insensitivity\":false},\"mapping\":null,\"reference_table\":null,\"metadata\":null}],\"version\":3611102}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "35d726ec-cc2a-c61e-f34c-9ce0c9e9db6b" + } +] \ No newline at end of file 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..626d104be82 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-1da22948b32f" }, { "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 e3c687db896..ac61cefff94 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": "c782b1f3-1b03-d50f-8fcd-12e51226c513" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c514" }, { "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 3c087b157b3..17f6987468c 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": "c782b1f3-1b03-d50f-8fcd-12e51226c50e" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c513" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_Org_Connection_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_Org_Connection_returns_OK_response.json index bb02652c1ea..c63dd04ca65 100644 --- a/src/test/resources/cassettes/features/v2/Delete_Org_Connection_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_Org_Connection_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae43" + "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae48" }, { "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 5a542ece674..1077273c329 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-f707c3b51e79" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7e" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238a9e" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa2" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_WAF_exclusion_filter_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_WAF_exclusion_filter_returns_OK_response.json index d14b87aa29b..e17e659929e 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_WAF_exclusion_filter_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_WAF_exclusion_filter_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "f87651cf-cb9d-db71-c4de-1be9e301b3ea" + "id": "f87651cf-cb9d-db71-c4de-1be9e301b3e9" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_NotContent_response.json b/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_NotContent_response.json index 423beb9380f..1511b4f762f 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_NotContent_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_NotContent_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6461" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6462" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_OK_response.json index d44f28ca671..7919b99b4ff 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_case_type_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6462" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6461" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_critical_asset_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_critical_asset_returns_OK_response.json index 44970e3b2b4..4fe7616f61c 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_critical_asset_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_critical_asset_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6ffb5b4d-a3b7-6fa1-1d1c-e0464f43c9e6" + "id": "6ffb5b4d-a3b7-6fa1-1d1c-e0464f43c9e7" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_dataset_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Delete_a_dataset_returns_No_Content_response.json index c7ce15f6147..92c10c6b507 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_dataset_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_dataset_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "32c558cf-4a2e-f914-f443-ab94000addcd" + "id": "32c558cf-4a2e-f914-f443-ab94000addc9" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_restriction_query_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_restriction_query_returns_OK_response.json index 9d5fec45de3..b4f342c7c6b 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_restriction_query_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_restriction_query_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "eb3b308b-3d56-9ef8-4096-dd7718f5185f" + "id": "eb3b308b-3d56-9ef8-4096-dd7718f5185e" }, { "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 245c33ef97b..a0473dce8a1 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-03a7fdff0698" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Bad_Request_response.json index a42ef29bfae..c82b6c27f29 100644 --- a/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_an_AWS_integration_returns_Bad_Request_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "73fd406e-d686-10bd-50ee-83f2c499e8a8" + "id": "73fd406e-d686-10bd-50ee-83f2c499e8a9" } ] \ No newline at end of file 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 5a5f85e9e24..27a3b2378c8 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": "479ab602-1a6a-ff9c-cfae-4a71849b3ce4" + "id": "479ab602-1a6a-ff9c-cfae-4a71849b3ce2" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_an_incident_type_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_an_incident_type_returns_OK_response.json index 13fae7e444c..5b8ac4a6eff 100644 --- a/src/test/resources/cassettes/features/v2/Delete_an_incident_type_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_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-e4d7e0833bd7" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Bad_Request_response.json index a9b1b0a59f2..01ab24ad981 100644 --- a/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145ff" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f8" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_No_Content_response.json index 329ab257b1d..d5073efc8b6 100644 --- a/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145f6" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f1" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Not_Found_response.json index 4a4af70d4d6..9f67c161366 100644 --- a/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_case_comment_returns_Not_Found_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145f5" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f7" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_Not_Found_response.json index 4d6f43f87bf..8d2bf345763 100644 --- a/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_Not_Found_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145eb" + "id": "79babc38-7a70-5347-c8a6-73b0e7014600" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_OK_response.json index 63612794c7f..98d4f2e89be 100644 --- a/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_custom_attribute_from_case_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6463" + "id": "dc45fc73-0f09-c12d-941b-eaf799af646a" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_Bad_Request_response.json index 2dc635d3a78..87794c5dcab 100644 --- a/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6467" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6466" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_No_Content_response.json index c787f38d63d..89e714c46e3 100644 --- a/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_custom_attributes_config_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6469" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6465" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_datastore_item_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_datastore_item_returns_OK_response.json index e1f6cfcce7c..9906d02abaf 100644 --- a/src/test/resources/cassettes/features/v2/Delete_datastore_item_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_datastore_item_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d30" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d35" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_datastore_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_datastore_returns_OK_response.json index 3ffceed3185..ccc4c95513a 100644 --- a/src/test/resources/cassettes/features/v2/Delete_datastore_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_datastore_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2c" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d33" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_incident_notification_rule_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Delete_incident_notification_rule_returns_No_Content_response.json index db130475284..776322c3df5 100644 --- a/src/test/resources/cassettes/features/v2/Delete_incident_notification_rule_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_incident_notification_rule_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd2" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bda" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_incident_notification_template_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Delete_incident_notification_template_returns_No_Content_response.json index 9baee52d947..74bc312dca6 100644 --- a/src/test/resources/cassettes/features/v2/Delete_incident_notification_template_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_incident_notification_template_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd4" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd2" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Edit_a_dataset_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Edit_a_dataset_returns_OK_response.json index 75a40d06c1c..12a959775bd 100644 --- a/src/test/resources/cassettes/features/v2/Edit_a_dataset_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Edit_a_dataset_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "32c558cf-4a2e-f914-f443-ab94000addc9" + "id": "32c558cf-4a2e-f914-f443-ab94000addce" }, { "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 6ef442b0c31..c2491988476 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-ff3630e3a2ce" + "id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cc" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_task_by_id_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_task_by_id_returns_Bad_Request_response.json index fe4cf251d57..6b2882ea815 100644 --- a/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_task_by_id_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_task_by_id_returns_Bad_Request_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "4fd99083-06ab-185c-0a48-d579a5f192c1" + "id": "4fd99083-06ab-185c-0a48-d579a5f192c2" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_tasks_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_tasks_returns_OK_response.json index 5fe868f6988..774e33bf524 100644 --- a/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_tasks_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_AWS_On_Demand_tasks_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "7442c701-c89c-a74b-3de9-6b4cff876178" + "id": "7442c701-c89c-a74b-3de9-6b4cff876179" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_AWS_on_demand_task_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Get_AWS_on_demand_task_returns_Bad_Request_response.json index 6b2882ea815..fe4cf251d57 100644 --- a/src/test/resources/cassettes/features/v2/Get_AWS_on_demand_task_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Get_AWS_on_demand_task_returns_Bad_Request_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "4fd99083-06ab-185c-0a48-d579a5f192c2" + "id": "4fd99083-06ab-185c-0a48-d579a5f192c1" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_App_returns_Gone_response.json b/src/test/resources/cassettes/features/v2/Get_App_returns_Gone_response.json index ca6f6eb76a9..f2e8ebc7ed1 100644 --- a/src/test/resources/cassettes/features/v2/Get_App_returns_Gone_response.json +++ b/src/test/resources/cassettes/features/v2/Get_App_returns_Gone_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "c782b1f3-1b03-d50f-8fcd-12e51226c514" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c50d" }, { "httpRequest": { 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 cdbd8c2d803..b461aa9101d 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": "c782b1f3-1b03-d50f-8fcd-12e51226c511" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c50e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_GCP_scan_options_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_GCP_scan_options_returns_OK_response.json index cab40f18769..018b1504a4a 100644 --- a/src/test/resources/cassettes/features/v2/Get_GCP_scan_options_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_GCP_scan_options_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "f9eb4412-690a-34d5-e9ac-6eb62df01fab" + "id": "f9eb4412-690a-34d5-e9ac-6eb62df01fac" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_critical_asset_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_critical_asset_returns_OK_response.json index 9190a1a8019..0baec6032c5 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_critical_asset_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_critical_asset_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6ffb5b4d-a3b7-6fa1-1d1c-e0464f43c9e7" + "id": "6ffb5b4d-a3b7-6fa1-1d1c-e0464f43c9e5" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_custom_framework_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_custom_framework_returns_OK_response.json index 2249ad7f8b8..009fff14323 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_custom_framework_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_custom_framework_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "13fe9685-b072-5fe0-c841-4499a9e71c71" + "id": "13fe9685-b072-5fe0-c841-4499a9e71c72" }, { "httpRequest": { @@ -79,6 +79,6 @@ "timeToLive": { "unlimited": true }, - "id": "e535722a-99e3-30cf-49f7-2d093bd78b3a" + "id": "e535722a-99e3-30cf-49f7-2d093bd78b3b" } ] \ No newline at end of file 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 3a14fe62055..99e1be2e6b8 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-03a7fdff069a" + "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 4b177525577..082ad2fe876 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": "4c138fa0-d834-5972-8bd7-894a659525af" + "id": "4c138fa0-d834-5972-8bd7-894a659525ad" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_restriction_query_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_restriction_query_returns_OK_response.json index d76b3217ed0..0c7c6a0abc1 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_restriction_query_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_restriction_query_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "eb3b308b-3d56-9ef8-4096-dd7718f51862" + "id": "eb3b308b-3d56-9ef8-4096-dd7718f5185f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_single_dataset_by_ID_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_single_dataset_by_ID_returns_OK_response.json index d3568a82564..59a863c261f 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_single_dataset_by_ID_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_single_dataset_by_ID_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "32c558cf-4a2e-f914-f443-ab94000addce" + "id": "32c558cf-4a2e-f914-f443-ab94000addcf" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json index 40f41bf5c71..c6e40d9ebaf 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_specific_pipeline_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c7d" + "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c7c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_all_custom_attributes_config_of_case_type_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_all_custom_attributes_config_of_case_type_returns_OK_response.json index 7fb128d6529..07da3e25a95 100644 --- a/src/test/resources/cassettes/features/v2/Get_all_custom_attributes_config_of_case_type_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_all_custom_attributes_config_of_case_type_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6468" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6463" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_all_rules_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_all_rules_returns_OK_response.json index e1d7d6dfa5f..6e336f005de 100644 --- a/src/test/resources/cassettes/features/v2/Get_all_rules_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_all_rules_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "7e2e839d-ac73-21dc-b480-36e366ae09da" + "id": "7e2e839d-ac73-21dc-b480-36e366ae09d9" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Bad_Request_response.json index 6352d5f0102..87cb96a7640 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Bad_Request_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "3d4d0603-9fed-1cc5-8004-086b9b6ef691" + "id": "3d4d0603-9fed-1cc5-8004-086b9b6ef690" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Not_Found_response.json index 7e5c7b1234d..55368f4ae1c 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Get_an_AWS_integration_by_config_ID_returns_Not_Found_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "9b33b83c-c8bb-714f-cf71-33ab2f3af9d3" + "id": "9b33b83c-c8bb-714f-cf71-33ab2f3af9d4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_an_existing_Workflow_returns_Successfully_got_a_workflow_response.json b/src/test/resources/cassettes/features/v2/Get_an_existing_Workflow_returns_Successfully_got_a_workflow_response.json index 79b249db928..c859297de35 100644 --- a/src/test/resources/cassettes/features/v2/Get_an_existing_Workflow_returns_Successfully_got_a_workflow_response.json +++ b/src/test/resources/cassettes/features/v2/Get_an_existing_Workflow_returns_Successfully_got_a_workflow_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "ef58c8e5-8d44-f741-5735-0d8c01ffa21f" + "id": "ef58c8e5-8d44-f741-5735-0d8c01ffa21d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_datastore_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_datastore_returns_OK_response.json index 4aba2dd2af0..b79df729351 100644 --- a/src/test/resources/cassettes/features/v2/Get_datastore_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_datastore_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d35" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d34" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_incident_notification_rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_incident_notification_rule_returns_OK_response.json index 6479b68ba16..72b76754c71 100644 --- a/src/test/resources/cassettes/features/v2/Get_incident_notification_rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_incident_notification_rule_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bdc" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd1" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_incident_notification_template_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_incident_notification_template_returns_OK_response.json index beb59e8c6bb..1cd0506f5f3 100644 --- a/src/test/resources/cassettes/features/v2/Get_incident_notification_template_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_incident_notification_template_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bdb" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd8" }, { "httpRequest": { 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 5b5d81e7265..0731ce00dfd 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": "79babc38-7a70-5347-c8a6-73b0e70145ef" + "id": "79babc38-7a70-5347-c8a6-73b0e70145ea" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_Not_Found_response.json index cc6c1703e9a..e9ddbf352f7 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_Not_Found_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "16438026-1168-3bfa-3763-949697b01fe9" + "id": "16438026-1168-3bfa-3763-949697b01fea" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_OK_response.json index c0406058bb1..6b6dc7ffeef 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_an_error_tracking_issue_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "16438026-1168-3bfa-3763-949697b01fea" + "id": "16438026-1168-3bfa-3763-949697b01fe9" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Gets_a_list_of_data_deletion_requests_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Gets_a_list_of_data_deletion_requests_returns_OK_response.json index 1eccad92176..6ab71e5cb0b 100644 --- a/src/test/resources/cassettes/features/v2/Gets_a_list_of_data_deletion_requests_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Gets_a_list_of_data_deletion_requests_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "516e2b97-25f6-b08c-4d4a-1da22948b32f" + "id": "516e2b97-25f6-b08c-4d4a-1da22948b330" }, { "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 efc1f126be5..ce9579ed86c 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-d650bb89216e" + "id": "ab2c08c1-60c7-9278-3246-d650bb892172" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Grant_role_to_a_restriction_query_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Grant_role_to_a_restriction_query_returns_OK_response.json index 1d634f061da..bbb7fb5acd3 100644 --- a/src/test/resources/cassettes/features/v2/Grant_role_to_a_restriction_query_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Grant_role_to_a_restriction_query_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "eb3b308b-3d56-9ef8-4096-dd7718f51861" + "id": "eb3b308b-3d56-9ef8-4096-dd7718f51860" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_AWS_on_demand_tasks_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_AWS_on_demand_tasks_returns_OK_response.json index f5543674faa..61e60b91801 100644 --- a/src/test/resources/cassettes/features/v2/List_AWS_on_demand_tasks_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_AWS_on_demand_tasks_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "7442c701-c89c-a74b-3de9-6b4cff876179" + "id": "7442c701-c89c-a74b-3de9-6b4cff876178" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_GCP_scan_options_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_GCP_scan_options_returns_OK_response.json index e200ee772e9..c09bb52e54b 100644 --- a/src/test/resources/cassettes/features/v2/List_GCP_scan_options_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_GCP_scan_options_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "f9eb4412-690a-34d5-e9ac-6eb62df01fac" + "id": "f9eb4412-690a-34d5-e9ac-6eb62df01fab" } ] \ No newline at end of file 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 386d8e0e05a..b5c65afa164 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-f707c3b51e7b" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7f" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa0" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa3" }, { "httpRequest": { @@ -79,7 +79,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7c" + "id": "01611a93-5e74-0630-3c51-f707c3b51e80" }, { "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 83f01f32714..2964c9bb0a0 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-03a7fdff069e" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0697" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_all_rules_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_all_rules_returns_OK_response.json index 80e2da9ecca..2cd151adcdb 100644 --- a/src/test/resources/cassettes/features/v2/List_all_rules_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_all_rules_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "7e2e839d-ac73-21dc-b480-36e366ae09d9" + "id": "7e2e839d-ac73-21dc-b480-36e366ae09da" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_datastore_items_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_datastore_items_returns_OK_response.json index 1ec023c7a3f..0251f9fdc84 100644 --- a/src/test/resources/cassettes/features/v2/List_datastore_items_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_datastore_items_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d34" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2d" }, { "httpRequest": { 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 496fbb6e65d..c59d5f476eb 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": "4c138fa0-d834-5972-8bd7-894a659525ad" + "id": "4c138fa0-d834-5972-8bd7-894a659525af" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_incident_notification_rules_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_incident_notification_rules_returns_OK_response.json index 1cb98a54721..6b2c18c708c 100644 --- a/src/test/resources/cassettes/features/v2/List_incident_notification_rules_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_incident_notification_rules_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bda" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd9" }, { "httpRequest": { 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 b4ab43f6993..f0011c849a4 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-4a5c3a301d0e" + "id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0f" } ] \ 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 e0386327470..a48da463a36 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-d650bb89216f" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216e" }, { "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 8b5185d00c4..72d39aac15b 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-d650bb89216d" + "id": "ab2c08c1-60c7-9278-3246-d650bb892170" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json index 7f8215348d1..be0c8e1fc69 100644 --- a/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_pipelines_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c80" + "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c7d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_roles_for_a_restriction_query_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_roles_for_a_restriction_query_returns_OK_response.json index 76dcecf2554..cd78d0c8aac 100644 --- a/src/test/resources/cassettes/features/v2/List_roles_for_a_restriction_query_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_roles_for_a_restriction_query_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "eb3b308b-3d56-9ef8-4096-dd7718f5185e" + "id": "eb3b308b-3d56-9ef8-4096-dd7718f51861" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_No_Content_response.json index 0a176ee003e..1b2ef6880a2 100644 --- a/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_No_Content_response.json @@ -22,6 +22,6 @@ "timeToLive": { "unlimited": true }, - "id": "0f485c8a-a29e-ebed-3836-545f90bc9457" + "id": "0f485c8a-a29e-ebed-3836-545f90bc9458" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_OK_response.json index 974c53ce63d..0a176ee003e 100644 --- a/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Patch_AWS_Scan_Options_returns_OK_response.json @@ -22,6 +22,6 @@ "timeToLive": { "unlimited": true }, - "id": "0f485c8a-a29e-ebed-3836-545f90bc9456" + "id": "0f485c8a-a29e-ebed-3836-545f90bc9457" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Post_GCP_Scan_Options_returns_Agentless_scan_options_enabled_successfully_response.json b/src/test/resources/cassettes/features/v2/Post_GCP_Scan_Options_returns_Agentless_scan_options_enabled_successfully_response.json index 848565e096f..25b85370788 100644 --- a/src/test/resources/cassettes/features/v2/Post_GCP_Scan_Options_returns_Agentless_scan_options_enabled_successfully_response.json +++ b/src/test/resources/cassettes/features/v2/Post_GCP_Scan_Options_returns_Agentless_scan_options_enabled_successfully_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "95d55fc8-65c9-599d-fc62-5922c3357590" + "id": "95d55fc8-65c9-599d-fc62-5922c335758f" }, { "httpRequest": { @@ -48,6 +48,6 @@ "timeToLive": { "unlimited": true }, - "id": "7e1fd6df-f1a0-70b4-90c2-13c11f689f83" + "id": "7e1fd6df-f1a0-70b4-90c2-13c11f689f82" } ] \ 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 435d359240b..2a83223836d 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": "c782b1f3-1b03-d50f-8fcd-12e51226c50d" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c50f" }, { "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 2925d76e394..8aabfa4bb3c 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-f707c3b51e80" + "id": "01611a93-5e74-0630-3c51-f707c3b51e84" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa3" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa6" }, { "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 391ac6f5a82..30c90f2c7a1 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-f707c3b51e82" + "id": "01611a93-5e74-0630-3c51-f707c3b51e81" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa5" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa4" }, { "httpRequest": { @@ -79,7 +79,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e83" + "id": "01611a93-5e74-0630-3c51-f707c3b51e82" }, { "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 7ddd5351e8b..965c63575d1 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-d650bb892171" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216d" }, { "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 c412cfe00ae..988f4ea02fd 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-d650bb892173" + "id": "ab2c08c1-60c7-9278-3246-d650bb892175" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Run_a_threat_hunting_job_returns_Status_created_response.json b/src/test/resources/cassettes/features/v2/Run_a_threat_hunting_job_returns_Status_created_response.json index de52f958b01..b0ab0c61ed8 100644 --- a/src/test/resources/cassettes/features/v2/Run_a_threat_hunting_job_returns_Status_created_response.json +++ b/src/test/resources/cassettes/features/v2/Run_a_threat_hunting_job_returns_Status_created_response.json @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "4c138fa0-d834-5972-8bd7-894a659525ae" + "id": "4c138fa0-d834-5972-8bd7-894a659525ac" } ] \ 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 5e1eff89d33..1f92d5f8ee0 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": "79babc38-7a70-5347-c8a6-73b0e70145fb" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f4" }, { "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 60a873eea23..c5a5a493747 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": "79babc38-7a70-5347-c8a6-73b0e70145e9" + "id": "79babc38-7a70-5347-c8a6-73b0e70145fe" }, { "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 30ea1068d6c..75b686bdbbe 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": "79babc38-7a70-5347-c8a6-73b0e70145fe" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f2" }, { "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 49fb8cc064c..00e0a12ca8e 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": "79babc38-7a70-5347-c8a6-73b0e70145ec" + "id": "79babc38-7a70-5347-c8a6-73b0e70145ee" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Unpublish_App_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Unpublish_App_returns_OK_response.json index 102c77a74fe..f9c3486386c 100644 --- a/src/test/resources/cassettes/features/v2/Unpublish_App_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Unpublish_App_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "c782b1f3-1b03-d50f-8fcd-12e51226c50f" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c50c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_AWS_scan_options_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Update_AWS_scan_options_returns_No_Content_response.json index 1b2ef6880a2..974c53ce63d 100644 --- a/src/test/resources/cassettes/features/v2/Update_AWS_scan_options_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Update_AWS_scan_options_returns_No_Content_response.json @@ -22,6 +22,6 @@ "timeToLive": { "unlimited": true }, - "id": "0f485c8a-a29e-ebed-3836-545f90bc9458" + "id": "0f485c8a-a29e-ebed-3836-545f90bc9456" } ] \ No newline at end of file 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 691c38c81f5..3ad98fd9666 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": "c782b1f3-1b03-d50f-8fcd-12e51226c510" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c511" }, { "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 1d4cdc5d72d..385920ba074 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": "c782b1f3-1b03-d50f-8fcd-12e51226c512" + "id": "c782b1f3-1b03-d50f-8fcd-12e51226c510" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Bad_Request_response.json index f6a98d32dfc..970a0b596df 100644 --- a/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae49" + "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae47" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Not_Found_response.json index b372a39399d..1c923bb6635 100644 --- a/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_Not_Found_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae44" + "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae46" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_OK_response.json index 4f2914f13a5..085c2a10ee9 100644 --- a/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Org_Connection_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae48" + "id": "76efebf6-d204-c8e8-5a8c-bd11c0a4ae43" }, { "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 949fd15a46e..31624316407 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-f707c3b51e85" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238a9d" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa7" }, { "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 62066321bb4..8c7573a6b24 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-f707c3b51e7e" + "id": "01611a93-5e74-0630-3c51-f707c3b51e78" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa2" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238a9d" }, { "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 2a7586fcda9..18d3e95b847 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-f707c3b51e84" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7a" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238aa6" + "id": "e6af4a2f-dfda-8f06-6f3a-f5528b238a9e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_Bad_Request_response.json index c7a6553a4f2..ffe3aefae73 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "337b2f05-cc5f-2fb5-c7be-e2e0e5bf9442" + "id": "337b2f05-cc5f-2fb5-c7be-e2e0e5bf9443" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_OK_response.json index 7b5287a216a..72e65a80efe 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_WAF_Custom_Rule_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "337b2f05-cc5f-2fb5-c7be-e2e0e5bf9443" + "id": "337b2f05-cc5f-2fb5-c7be-e2e0e5bf9441" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_WAF_exclusion_filter_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_WAF_exclusion_filter_returns_Bad_Request_response.json index f24b50ca13f..402e0d483a0 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_WAF_exclusion_filter_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_WAF_exclusion_filter_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "337b2f05-cc5f-2fb5-c7be-e2e0e5bf9441" + "id": "337b2f05-cc5f-2fb5-c7be-e2e0e5bf9442" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_critical_asset_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_critical_asset_returns_OK_response.json index 6b10b1f99cb..3f634cdfdc4 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_critical_asset_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_critical_asset_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6ffb5b4d-a3b7-6fa1-1d1c-e0464f43c9e5" + "id": "6ffb5b4d-a3b7-6fa1-1d1c-e0464f43c9e6" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_legacy_WAF_exclusion_filter_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_legacy_WAF_exclusion_filter_returns_Bad_Request_response.json index c3918bef3d9..3d963f1eb76 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_legacy_WAF_exclusion_filter_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_legacy_WAF_exclusion_filter_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "f87651cf-cb9d-db71-c4de-1be9e301b3e9" + "id": "f87651cf-cb9d-db71-c4de-1be9e301b3ea" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json index 7507a4ec463..3f6cb5725eb 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c7e" + "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c80" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json index 5486c5522b1..7ee7239080c 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_pipeline_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c7c" + "id": "1c5790bf-1fdc-930d-ee1e-046e57b87c7e" }, { "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 e8a192ca3ed..f86ae381a6a 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-03a7fdff0699" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069c" }, { "httpRequest": { 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 19bafda234f..a69a6922bcb 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-03a7fdff0697" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_with_trace_rate_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_with_trace_rate_returns_OK_response.json index a39d900e784..8ec3516aa37 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_retention_filter_with_trace_rate_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_retention_filter_with_trace_rate_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "b2404278-8cc9-cba4-e3eb-03a7fdff069d" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0699" }, { "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 889d546c6ee..4e5ca79a29d 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-03a7fdff069b" + "id": "b2404278-8cc9-cba4-e3eb-03a7fdff0698" }, { "httpRequest": { 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..4dbd4d81382 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-03a7fdff069a" }, { "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 a0d5f9cc2e9..2733aa2afce 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-d650bb892175" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216f" }, { "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 1f8f591d76e..cd124c0cca2 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-d650bb892170" + "id": "ab2c08c1-60c7-9278-3246-d650bb892173" }, { "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 3e8008f2657..a6258c72557 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-d650bb89216c" + "id": "ab2c08c1-60c7-9278-3246-d650bb892171" }, { "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 e25ebe1df98..6f8a3b3ff88 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": "479ab602-1a6a-ff9c-cfae-4a71849b3ce2" + "id": "479ab602-1a6a-ff9c-cfae-4a71849b3ce1" }, { "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 5e43645a6a4..b3d0c2aebe2 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": "479ab602-1a6a-ff9c-cfae-4a71849b3ce1" + "id": "479ab602-1a6a-ff9c-cfae-4a71849b3ce5" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Bad_request_response.json b/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Bad_request_response.json index 3fff6d70d3c..59be0a3c587 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Bad_request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Bad_request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "ef58c8e5-8d44-f741-5735-0d8c01ffa21e" + "id": "ef58c8e5-8d44-f741-5735-0d8c01ffa21f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Successfully_updated_a_workflow_response.json b/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Successfully_updated_a_workflow_response.json index ab514e51ba2..be6cf1cbadf 100644 --- a/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Successfully_updated_a_workflow_response.json +++ b/src/test/resources/cassettes/features/v2/Update_an_existing_Workflow_returns_Successfully_updated_a_workflow_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "ef58c8e5-8d44-f741-5735-0d8c01ffa21d" + "id": "ef58c8e5-8d44-f741-5735-0d8c01ffa21e" }, { "httpRequest": { 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 353dc013b7a..c6217f9450f 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-e4d7e0833bd8" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd6" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json index c403571c4ea..743bfbc7078 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8d" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json index d2688342500..07e56a25e8a 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145f9" + "id": "79babc38-7a70-5347-c8a6-73b0e70145fd" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Bad_Request_response.json index 0fb05ef1dd5..0587c45a38b 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6465" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6468" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Not_Found_response.json index 87c697b97a9..8630f955ca7 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_Not_Found_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145f8" + "id": "79babc38-7a70-5347-c8a6-73b0e70145eb" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_OK_response.json index ee590d62b00..c2b2cab762b 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_custom_attribute_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "dc45fc73-0f09-c12d-941b-eaf799af6464" + "id": "dc45fc73-0f09-c12d-941b-eaf799af6469" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_description_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_description_returns_Bad_Request_response.json index 431f560d206..d1c977728b3 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_description_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_description_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8e" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_description_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_description_returns_OK_response.json index 0facddc7bca..61fbae645d9 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_description_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_description_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e7014600" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f9" }, { "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 f17e853b338..dcfef467346 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": "79babc38-7a70-5347-c8a6-73b0e70145f7" + "id": "79babc38-7a70-5347-c8a6-73b0e70145fa" }, { "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 f58f1fcd76c..5ccc5cd5b49 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": "79babc38-7a70-5347-c8a6-73b0e70145ee" + "id": "79babc38-7a70-5347-c8a6-73b0e70145ff" }, { "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 9843435430c..6be14122c9a 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": "79babc38-7a70-5347-c8a6-73b0e70145f4" + "id": "79babc38-7a70-5347-c8a6-73b0e70145fb" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_title_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_title_returns_Bad_Request_response.json index eb21dfe7899..7bcb7dbadb9 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_title_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_title_returns_Bad_Request_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145fa" + "id": "79babc38-7a70-5347-c8a6-73b0e70145f0" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_case_title_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_title_returns_OK_response.json index b0f714f21ea..1403550dfe7 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_title_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_title_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "79babc38-7a70-5347-c8a6-73b0e70145f1" + "id": "79babc38-7a70-5347-c8a6-73b0e70145ef" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_datastore_item_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_datastore_item_returns_OK_response.json index a293ad3ef40..9f3ed984b69 100644 --- a/src/test/resources/cassettes/features/v2/Update_datastore_item_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_datastore_item_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2d" + "id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_incident_notification_rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_incident_notification_rule_returns_OK_response.json index d0d45a681c5..eeb51f4d744 100644 --- a/src/test/resources/cassettes/features/v2/Update_incident_notification_rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_incident_notification_rule_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd3" + "id": "7bcfec66-5300-9891-51e5-e4d7e0833bd4" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze new file mode 100644 index 00000000000..3de83d42681 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.freeze @@ -0,0 +1 @@ +2025-10-08T19:15:10.916Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json new file mode 100644 index 00000000000..923ae3fdf63 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_tag_pipeline_ruleset_with_if_tag_exists_returns_OK_response.json @@ -0,0 +1,32 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"enabled\":true,\"last_version\":3611102,\"rules\":[{\"enabled\":true,\"mapping\":{\"destination_key\":\"team_owner\",\"if_tag_exists\":\"replace\",\"source_keys\":[\"account_name\",\"account_id\"]},\"name\":\"Account Name Mapping\",\"query\":null,\"reference_table\":null}]},\"id\":\"New Ruleset\",\"type\":\"update_ruleset\"}}" + }, + "headers": {}, + "method": "PATCH", + "path": "/api/v2/tags/enrichment/ee10c3ff-312f-464c-b4f6-46adaa6d00a1", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"ee10c3ff-312f-464c-b4f6-46adaa6d00a1\",\"type\":\"ruleset\",\"attributes\":{\"created\":{\"seconds\":1759950911,\"nanos\":31873000},\"enabled\":true,\"last_modified_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"modified\":{\"seconds\":1759950911,\"nanos\":31873000},\"name\":\"New Ruleset\",\"position\":1,\"rules\":[{\"name\":\"Account Name Mapping\",\"enabled\":true,\"query\":null,\"mapping\":{\"source_keys\":[\"account_name\",\"account_id\"],\"destination_key\":\"team_owner\",\"if_tag_exists\":\"replace\"},\"reference_table\":null,\"metadata\":null}],\"version\":3611113}}}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "9b94ac4e-1d52-3144-f8a8-bd0652a92284" + } +] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v1/api/service_level_objectives.feature b/src/test/resources/com/datadog/api/client/v1/api/service_level_objectives.feature index c5534618a73..22c9d6cd3f9 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/service_level_objectives.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/service_level_objectives.feature @@ -48,6 +48,23 @@ Feature: Service Level Objectives When the request is sent Then the response status is 200 OK + @team:DataDog/slo-app + Scenario: Create a new metric SLO object using sli_specification returns "OK" response + Given new "CreateSLO" request + And body with value {"type":"metric","description":"Metric SLO using sli_specification","name":"{{ unique }}","sli_specification":{"count":{"good_events_formula":{"formula":"query1 - query2"},"total_events_formula":{"formula":"query1"},"queries":[{"data_source":"metrics","name":"query1","query":"sum:httpservice.hits{*}.as_count()"},{"data_source":"metrics","name":"query2","query":"sum:httpservice.errors{*}.as_count()"}]}},"tags":["env:prod","type:count"],"thresholds":[{"target":99.0,"target_display":"99.0","timeframe":"7d","warning":99.5,"warning_display":"99.5"}],"timeframe":"7d","target_threshold":99.0,"warning_threshold":99.5} + When the request is sent + Then the response status is 200 OK + And the response "data[0].timeframe" is equal to "7d" + And the response "data[0].target_threshold" is equal to 99.0 + And the response "data[0].warning_threshold" is equal to 99.5 + And the response "data[0]" has field "sli_specification" + And the response "data[0].sli_specification" has field "count" + And the response "data[0].sli_specification.count" has field "good_events_formula" + And the response "data[0].sli_specification.count" has field "total_events_formula" + And the response "data[0].sli_specification.count" has field "queries" + And the response "data[0].sli_specification.count.queries" has length 2 + And the response "data[0]" has field "query" + @team:DataDog/slo-app Scenario: Create a time-slice SLO object returns "OK" response Given new "CreateSLO" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/cloud_cost_management.feature b/src/test/resources/com/datadog/api/client/v2/api/cloud_cost_management.feature index 66ccd680c23..312e05fb382 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/cloud_cost_management.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/cloud_cost_management.feature @@ -97,6 +97,15 @@ Feature: Cloud Cost Management And the response "data.type" is equal to "ruleset" And the response "data.attributes.name" is equal to "New Ruleset" + @replay-only @team:DataDog/cloud-cost-management + Scenario: Create tag pipeline ruleset with if_tag_exists returns "OK" response + Given new "CreateTagPipelinesRuleset" request + And body with value {"data": {"attributes": {"enabled": true, "rules": [{"enabled": true, "mapping": null, "name": "Add Cost Center Tag", "query": {"addition": {"key": "cost_center", "value": "engineering"}, "case_insensitivity": false, "if_tag_exists": "replace", "query": "account_id:\"123456789\" AND service:\"web-api\""}, "reference_table": null}]}, "id": "New Ruleset", "type": "create_ruleset"}} + When the request is sent + Then the response status is 200 OK + And the response "data.type" is equal to "ruleset" + And the response "data.attributes.name" is equal to "New Ruleset" + @generated @skip @team:DataDog/cloud-cost-management Scenario: Delete Cloud Cost Management AWS CUR config returns "Bad Request" response Given new "DeleteCostAWSCURConfig" request @@ -447,6 +456,14 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 200 OK + @replay-only @team:DataDog/cloud-cost-management + Scenario: Update tag pipeline ruleset with if_tag_exists returns "OK" response + Given new "UpdateTagPipelinesRuleset" request + And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1" + And body with value {"data": {"attributes": {"enabled": true, "last_version": 3611102, "rules": [{"enabled": true, "mapping": {"destination_key": "team_owner", "if_tag_exists": "replace", "source_keys": ["account_name", "account_id"]}, "name": "Account Name Mapping", "query": null, "reference_table": null}]}, "id": "New Ruleset", "type": "update_ruleset"}} + When the request is sent + Then the response status is 200 OK + @replay-only @team:DataDog/cloud-cost-management Scenario: Upload Custom Costs File returns "Accepted" response Given new "UploadCustomCostsFile" request