diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index b7b41151ba76..323c27bbdf2d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -64968,6 +64968,9 @@ components: description: The ID of a component whose output is used as input for this destination. type: string type: array + tls: + $ref: "#/components/schemas/ObservabilityPipelineTls" + description: Configuration for TLS encryption. type: $ref: "#/components/schemas/ObservabilityPipelineCloudPremDestinationType" required: @@ -153240,6 +153243,9 @@ paths: operator: OR permissions: - metrics_read + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Create a tag indexing rule for the org. `rule_order` is assigned server-side as max+1 @@ -153318,6 +153324,9 @@ paths: operator: OR permissions: - metric_tags_write + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/tag-indexing-rules/order: post: description: |- @@ -153380,6 +153389,9 @@ paths: operator: OR permissions: - metric_tags_write + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/tag-indexing-rules/{id}: delete: description: |- @@ -153422,6 +153434,9 @@ paths: operator: OR permissions: - metric_tags_write + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: Get a single tag indexing rule by its UUID. operationId: GetTagIndexingRule @@ -153486,6 +153501,9 @@ paths: operator: OR permissions: - metrics_read + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: |- Partially update a tag indexing rule. Fields omitted from the request body are left unchanged. @@ -153577,6 +153595,9 @@ paths: operator: OR permissions: - metric_tags_write + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/{metric_name}/active-configurations: get: description: |- @@ -154006,6 +154027,9 @@ paths: operator: OR permissions: - metric_tags_write + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: |- Returns why a metric is excluded from tag indexing rules. @@ -154069,6 +154093,9 @@ paths: operator: OR permissions: - metrics_read + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Exempt a metric from all tag indexing rules. The response includes the created @@ -154138,6 +154165,9 @@ paths: operator: OR permissions: - metric_tags_write + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/{metric_name}/tag-indexing-rules: get: description: |- @@ -154189,6 +154219,9 @@ paths: operator: OR permissions: - metrics_read + x-unstable: |- + **Note**: The Tag Indexing Rules feature is currently in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics/{metric_name}/tags: delete: description: |- diff --git a/examples/v2/metrics/CreateTagIndexingRule.rb b/examples/v2/metrics/CreateTagIndexingRule.rb index d4e1d8e4f14d..76028b26765f 100644 --- a/examples/v2/metrics/CreateTagIndexingRule.rb +++ b/examples/v2/metrics/CreateTagIndexingRule.rb @@ -1,6 +1,9 @@ # Create a tag indexing rule returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.create_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TagIndexingRuleCreateRequest.new({ diff --git a/examples/v2/metrics/CreateTagIndexingRuleExemption.rb b/examples/v2/metrics/CreateTagIndexingRuleExemption.rb index 131939597cb3..43729d2a43bb 100644 --- a/examples/v2/metrics/CreateTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/CreateTagIndexingRuleExemption.rb @@ -1,6 +1,9 @@ # Create a tag indexing rule exemption returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.create_tag_indexing_rule_exemption".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TagIndexingRuleExemptionCreateRequest.new({ diff --git a/examples/v2/metrics/DeleteTagIndexingRule.rb b/examples/v2/metrics/DeleteTagIndexingRule.rb index 1ca601e65a1a..bf9c50c75e6a 100644 --- a/examples/v2/metrics/DeleteTagIndexingRule.rb +++ b/examples/v2/metrics/DeleteTagIndexingRule.rb @@ -1,6 +1,9 @@ # Delete a tag indexing rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.delete_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb b/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb index 749c14ab8827..b5fdaeb480a9 100644 --- a/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb @@ -1,5 +1,8 @@ # Delete a tag indexing rule exemption returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.delete_tag_indexing_rule_exemption".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new api_instance.delete_tag_indexing_rule_exemption("metric_name") diff --git a/examples/v2/metrics/GetTagIndexingRule.rb b/examples/v2/metrics/GetTagIndexingRule.rb index 33d5ff091c9d..afd1c564dde2 100644 --- a/examples/v2/metrics/GetTagIndexingRule.rb +++ b/examples/v2/metrics/GetTagIndexingRule.rb @@ -1,6 +1,9 @@ # Get a tag indexing rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.get_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/GetTagIndexingRuleExemption.rb b/examples/v2/metrics/GetTagIndexingRuleExemption.rb index 92a823429487..ac287c25eae0 100644 --- a/examples/v2/metrics/GetTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/GetTagIndexingRuleExemption.rb @@ -1,5 +1,8 @@ # Get a tag indexing rule exemption returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.get_tag_indexing_rule_exemption".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.get_tag_indexing_rule_exemption("metric_name") diff --git a/examples/v2/metrics/ListTagIndexingRules.rb b/examples/v2/metrics/ListTagIndexingRules.rb index d2979623e920..a123f4185fea 100644 --- a/examples/v2/metrics/ListTagIndexingRules.rb +++ b/examples/v2/metrics/ListTagIndexingRules.rb @@ -1,5 +1,8 @@ # List tag indexing rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.list_tag_indexing_rules".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_tag_indexing_rules() diff --git a/examples/v2/metrics/ListTagIndexingRulesForMetric.rb b/examples/v2/metrics/ListTagIndexingRulesForMetric.rb index f9ec7410893b..975b570aae31 100644 --- a/examples/v2/metrics/ListTagIndexingRulesForMetric.rb +++ b/examples/v2/metrics/ListTagIndexingRulesForMetric.rb @@ -1,5 +1,8 @@ # List tag indexing rules for a metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.list_tag_indexing_rules_for_metric".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_tag_indexing_rules_for_metric("ExampleMetric") diff --git a/examples/v2/metrics/ReorderTagIndexingRules.rb b/examples/v2/metrics/ReorderTagIndexingRules.rb index 2fa31d3e0083..547c01f78c95 100644 --- a/examples/v2/metrics/ReorderTagIndexingRules.rb +++ b/examples/v2/metrics/ReorderTagIndexingRules.rb @@ -1,6 +1,9 @@ # Reorder tag indexing rules returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.reorder_tag_indexing_rules".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/examples/v2/metrics/UpdateTagIndexingRule.rb b/examples/v2/metrics/UpdateTagIndexingRule.rb index ee521d16a70c..81986dc2a56e 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule.rb +++ b/examples/v2/metrics/UpdateTagIndexingRule.rb @@ -1,6 +1,9 @@ # Update a tag indexing rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.unstable_operations["v2.update_tag_indexing_rule".to_sym] = true +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "tag_indexing_rule" in the system diff --git a/features/v2/metrics.feature b/features/v2/metrics.feature index 0d0dac2e9d09..24b766d5d565 100644 --- a/features/v2/metrics.feature +++ b/features/v2/metrics.feature @@ -71,6 +71,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Create a tag indexing rule exemption returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "CreateTagIndexingRuleExemption" enabled And new "CreateTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"reason": "This metric has a pre-existing tag configuration."}, "type": "tag_indexing_rule_exemptions"}} @@ -80,6 +81,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Create a tag indexing rule exemption returns "Created" response Given a valid "appKeyAuth" key in the system + And operation "CreateTagIndexingRuleExemption" enabled And new "CreateTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"reason": "This metric has a pre-existing tag configuration."}, "type": "tag_indexing_rule_exemptions"}} @@ -89,6 +91,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Create a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"type": "tag_indexing_rules", "attributes": {"name": "test", "metric_name_matches": ["dd.test.*"], "options": {"version": 99, "data": {"override_previous_rules": false, "manage_preexisting_metrics": true}}}}} When the request is sent @@ -97,6 +100,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Create a tag indexing rule returns "Created" response Given a valid "appKeyAuth" key in the system + And operation "CreateTagIndexingRule" enabled And new "CreateTagIndexingRule" request And body with value {"data": {"attributes": {"exclude_tags_mode": false, "ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"queried_tags_window_seconds": 3600, "related_asset_tags": false}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -123,6 +127,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Delete a tag indexing rule exemption returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "DeleteTagIndexingRuleExemption" enabled And new "DeleteTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -131,6 +136,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Delete a tag indexing rule exemption returns "No Content" response Given a valid "appKeyAuth" key in the system + And operation "DeleteTagIndexingRuleExemption" enabled And new "DeleteTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -139,6 +145,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Delete a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "DeleteTagIndexingRule" enabled And new "DeleteTagIndexingRule" request And request contains "id" parameter with value "not-a-valid-uuid" When the request is sent @@ -147,6 +154,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Delete a tag indexing rule returns "No Content" response Given a valid "appKeyAuth" key in the system + And operation "DeleteTagIndexingRule" enabled And there is a valid "tag_indexing_rule" in the system And new "DeleteTagIndexingRule" request And request contains "id" parameter from "tag_indexing_rule.data.id" @@ -222,6 +230,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Get a tag indexing rule exemption returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRuleExemption" enabled And new "GetTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -230,6 +239,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Get a tag indexing rule exemption returns "Not Found" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRuleExemption" enabled And new "GetTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -238,6 +248,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Get a tag indexing rule exemption returns "OK" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRuleExemption" enabled And new "GetTagIndexingRuleExemption" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent @@ -246,6 +257,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Get a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRule" enabled And new "GetTagIndexingRule" request And request contains "id" parameter with value "not-a-valid-uuid" When the request is sent @@ -254,6 +266,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Get a tag indexing rule returns "Not Found" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRule" enabled And new "GetTagIndexingRule" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent @@ -262,6 +275,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Get a tag indexing rule returns "OK" response Given a valid "appKeyAuth" key in the system + And operation "GetTagIndexingRule" enabled And there is a valid "tag_indexing_rule" in the system And new "GetTagIndexingRule" request And request contains "id" parameter from "tag_indexing_rule.data.id" @@ -368,6 +382,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: List tag indexing rules for a metric returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "ListTagIndexingRulesForMetric" enabled And new "ListTagIndexingRulesForMetric" request And request contains "metric_name" parameter with value "1invalid" When the request is sent @@ -376,6 +391,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: List tag indexing rules for a metric returns "OK" response Given a valid "appKeyAuth" key in the system + And operation "ListTagIndexingRulesForMetric" enabled And new "ListTagIndexingRulesForMetric" request And request contains "metric_name" parameter with value "{{ unique_alnum }}" When the request is sent @@ -384,6 +400,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: List tag indexing rules returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "ListTagIndexingRules" enabled And new "ListTagIndexingRules" request When the request is sent Then the response status is 400 Bad Request @@ -391,6 +408,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: List tag indexing rules returns "OK" response Given a valid "appKeyAuth" key in the system + And operation "ListTagIndexingRules" enabled And new "ListTagIndexingRules" request When the request is sent Then the response status is 200 OK @@ -475,6 +493,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Reorder tag indexing rules returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "ReorderTagIndexingRules" enabled And new "ReorderTagIndexingRules" request And body with value {"data": {"attributes": {"rule_ids": []}, "type": "tag_indexing_rules"}} When the request is sent @@ -483,6 +502,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Reorder tag indexing rules returns "No Content" response Given a valid "appKeyAuth" key in the system + And operation "ReorderTagIndexingRules" enabled And there is a valid "tag_indexing_rule" in the system And new "ReorderTagIndexingRules" request And body with value {"data": {"attributes": {"rule_ids": ["{{ tag_indexing_rule.data.id }}"]}, "type": "tag_indexing_rules"}} @@ -492,6 +512,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Reorder tag indexing rules returns "Not Found" response Given a valid "appKeyAuth" key in the system + And operation "ReorderTagIndexingRules" enabled And new "ReorderTagIndexingRules" request And body with value {"data": {"attributes": {"rule_ids": ["00000000-0000-0000-0000-000000000001", "00000000-0000-0000-0000-000000000002"]}, "type": "tag_indexing_rules"}} When the request is sent @@ -961,6 +982,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Update a tag indexing rule returns "Bad Request" response Given a valid "appKeyAuth" key in the system + And operation "UpdateTagIndexingRule" enabled And new "UpdateTagIndexingRule" request And request contains "id" parameter with value "not-a-valid-uuid" And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"queried_tags_window_seconds": 3600, "related_asset_tags": false}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "rule_order": 2, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} @@ -970,6 +992,7 @@ Feature: Metrics @generated @skip @team:DataDog/metrics-experience Scenario: Update a tag indexing rule returns "Conflict" response Given a valid "appKeyAuth" key in the system + And operation "UpdateTagIndexingRule" enabled And new "UpdateTagIndexingRule" request And request contains "id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"queried_tags_window_seconds": 3600, "related_asset_tags": false}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "rule_order": 2, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} @@ -979,6 +1002,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Update a tag indexing rule returns "Not Found" response Given a valid "appKeyAuth" key in the system + And operation "UpdateTagIndexingRule" enabled And new "UpdateTagIndexingRule" request And request contains "id" parameter with value "00000000-0000-0000-0000-000000000000" And body with value {"data": {"attributes": {"ignored_metric_name_matches": [], "metric_name_matches": ["dd.test.*"], "name": "my-indexing-rule", "options": {"data": {"dynamic_tags": {"queried_tags_window_seconds": 3600, "related_asset_tags": false}, "manage_preexisting_metrics": true, "metric_match": {"queried_window_seconds": 3600}, "override_previous_rules": false}, "version": 1}, "rule_order": 2, "tags": ["env", "service"]}, "type": "tag_indexing_rules"}} @@ -988,6 +1012,7 @@ Feature: Metrics @team:DataDog/metrics-experience Scenario: Update a tag indexing rule returns "OK" response Given a valid "appKeyAuth" key in the system + And operation "UpdateTagIndexingRule" enabled And there is a valid "tag_indexing_rule" in the system And new "UpdateTagIndexingRule" request And request contains "id" parameter from "tag_indexing_rule.data.id" diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 293cb80e53b3..3cccaa92c8b1 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -576,6 +576,16 @@ def initialize "v2.remove_role_from_restriction_query": false, "v2.replace_restriction_query": false, "v2.update_restriction_query": false, + "v2.create_tag_indexing_rule": false, + "v2.create_tag_indexing_rule_exemption": false, + "v2.delete_tag_indexing_rule": false, + "v2.delete_tag_indexing_rule_exemption": false, + "v2.get_tag_indexing_rule": false, + "v2.get_tag_indexing_rule_exemption": false, + "v2.list_tag_indexing_rules": false, + "v2.list_tag_indexing_rules_for_metric": false, + "v2.reorder_tag_indexing_rules": false, + "v2.update_tag_indexing_rule": false, "v2.delete_model_lab_run": false, "v2.get_model_lab_artifact_content": false, "v2.get_model_lab_project": false, diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index dee128ad4ffc..66e31fe52616 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -195,6 +195,12 @@ def create_tag_indexing_rule(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers def create_tag_indexing_rule_with_http_info(body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.create_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.create_tag_indexing_rule ...' @@ -264,6 +270,12 @@ def create_tag_indexing_rule_exemption(metric_name, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleExemptionResponse, Integer, Hash)>] TagIndexingRuleExemptionResponse data, response status code and response headers def create_tag_indexing_rule_exemption_with_http_info(metric_name, body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.create_tag_indexing_rule_exemption".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_tag_indexing_rule_exemption") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_tag_indexing_rule_exemption")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.create_tag_indexing_rule_exemption ...' @@ -479,6 +491,12 @@ def delete_tag_indexing_rule(id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_tag_indexing_rule_with_http_info(id, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.delete_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.delete_tag_indexing_rule ...' @@ -546,6 +564,12 @@ def delete_tag_indexing_rule_exemption(metric_name, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_tag_indexing_rule_exemption_with_http_info(metric_name, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.delete_tag_indexing_rule_exemption".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_tag_indexing_rule_exemption") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_tag_indexing_rule_exemption")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.delete_tag_indexing_rule_exemption ...' @@ -763,6 +787,12 @@ def get_tag_indexing_rule(id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers def get_tag_indexing_rule_with_http_info(id, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.get_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.get_tag_indexing_rule ...' @@ -831,6 +861,12 @@ def get_tag_indexing_rule_exemption(metric_name, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleExemptionResponse, Integer, Hash)>] TagIndexingRuleExemptionResponse data, response status code and response headers def get_tag_indexing_rule_exemption_with_http_info(metric_name, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.get_tag_indexing_rule_exemption".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_tag_indexing_rule_exemption") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_tag_indexing_rule_exemption")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.get_tag_indexing_rule_exemption ...' @@ -1228,6 +1264,12 @@ def list_tag_indexing_rules(opts = {}) # @option opts [String] :search Substring filter on rule name. # @return [Array<(TagIndexingRulesResponse, Integer, Hash)>] TagIndexingRulesResponse data, response status code and response headers def list_tag_indexing_rules_with_http_info(opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.list_tag_indexing_rules".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_tag_indexing_rules") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_tag_indexing_rules")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_indexing_rules ...' @@ -1293,6 +1335,12 @@ def list_tag_indexing_rules_for_metric(metric_name, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRulesResponse, Integer, Hash)>] TagIndexingRulesResponse data, response status code and response headers def list_tag_indexing_rules_for_metric_with_http_info(metric_name, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.list_tag_indexing_rules_for_metric".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_tag_indexing_rules_for_metric") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_tag_indexing_rules_for_metric")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_indexing_rules_for_metric ...' @@ -1650,6 +1698,12 @@ def reorder_tag_indexing_rules(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def reorder_tag_indexing_rules_with_http_info(body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.reorder_tag_indexing_rules".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_tag_indexing_rules") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_tag_indexing_rules")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.reorder_tag_indexing_rules ...' @@ -1880,6 +1934,12 @@ def update_tag_indexing_rule(id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers def update_tag_indexing_rule_with_http_info(id, body, opts = {}) + unstable_enabled = @api_client.config.unstable_operations["v2.update_tag_indexing_rule".to_sym] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_tag_indexing_rule") + else + raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_tag_indexing_rule")) + end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.update_tag_indexing_rule ...' diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb index c4a2a99cde3d..7b7d1374a32d 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb @@ -35,6 +35,9 @@ class ObservabilityPipelineCloudPremDestination # A list of component IDs whose output is used as the `input` for this component. attr_reader :inputs + # Configuration for enabling TLS encryption between the pipeline component and external services. + attr_accessor :tls + # The destination type. The value should always be `cloud_prem`. attr_reader :type @@ -48,6 +51,7 @@ def self.attribute_map :'endpoint_url_key' => :'endpoint_url_key', :'id' => :'id', :'inputs' => :'inputs', + :'tls' => :'tls', :'type' => :'type' } end @@ -60,6 +64,7 @@ def self.openapi_types :'endpoint_url_key' => :'String', :'id' => :'String', :'inputs' => :'Array', + :'tls' => :'ObservabilityPipelineTls', :'type' => :'ObservabilityPipelineCloudPremDestinationType' } end @@ -100,6 +105,10 @@ def initialize(attributes = {}) end end + if attributes.key?(:'tls') + self.tls = attributes[:'tls'] + end + if attributes.key?(:'type') self.type = attributes[:'type'] end @@ -175,6 +184,7 @@ def ==(o) endpoint_url_key == o.endpoint_url_key && id == o.id && inputs == o.inputs && + tls == o.tls && type == o.type && additional_properties == o.additional_properties end @@ -183,7 +193,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [buffer, endpoint_url_key, id, inputs, type, additional_properties].hash + [buffer, endpoint_url_key, id, inputs, tls, type, additional_properties].hash end end end