diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index bed8d5118405..680f08792e5b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -48210,7 +48210,6 @@ components: $ref: "#/components/schemas/IncidentUserDefinedRolePolicy" required: - name - - policy type: object IncidentUserDefinedRoleDataAttributesResponse: description: Attributes of an incident user-defined role. @@ -129641,9 +129640,6 @@ paths: summary: Create or replace a budget's custom forecast tags: - Cloud Cost Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cost/budget/validate: post: description: Validate a budget configuration without creating or modifying it @@ -129837,9 +129833,6 @@ paths: summary: Delete a budget's custom forecast tags: - Cloud Cost Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: Get the custom forecast for a budget. operationId: GetCustomForecast @@ -129887,9 +129880,6 @@ paths: summary: Get a budget's custom forecast tags: - Cloud Cost Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cost/budgets: get: description: List budgets. diff --git a/examples/v2/cloud-cost-management/DeleteCustomForecast.rb b/examples/v2/cloud-cost-management/DeleteCustomForecast.rb index 6c6afafc8e63..3675c7d0036b 100644 --- a/examples/v2/cloud-cost-management/DeleteCustomForecast.rb +++ b/examples/v2/cloud-cost-management/DeleteCustomForecast.rb @@ -1,8 +1,5 @@ # Delete a budget's custom forecast returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.delete_custom_forecast".to_sym] = true -end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_custom_forecast("budget_id") diff --git a/examples/v2/cloud-cost-management/GetCustomForecast.rb b/examples/v2/cloud-cost-management/GetCustomForecast.rb index cb1ca9159ea3..70ed7e8b517d 100644 --- a/examples/v2/cloud-cost-management/GetCustomForecast.rb +++ b/examples/v2/cloud-cost-management/GetCustomForecast.rb @@ -1,8 +1,5 @@ # Get a budget's custom forecast returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.get_custom_forecast".to_sym] = true -end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_custom_forecast("budget_id") diff --git a/examples/v2/cloud-cost-management/UpsertCustomForecast.rb b/examples/v2/cloud-cost-management/UpsertCustomForecast.rb index a7887bcf1f09..4db9611ee30a 100644 --- a/examples/v2/cloud-cost-management/UpsertCustomForecast.rb +++ b/examples/v2/cloud-cost-management/UpsertCustomForecast.rb @@ -1,9 +1,6 @@ # Create or replace a budget's custom forecast returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.upsert_custom_forecast".to_sym] = true -end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::CustomForecastUpsertRequest.new({ diff --git a/features/v2/cloud_cost_management.feature b/features/v2/cloud_cost_management.feature index a8693074a7d2..57849f54f3c7 100644 --- a/features/v2/cloud_cost_management.feature +++ b/features/v2/cloud_cost_management.feature @@ -69,24 +69,21 @@ Feature: Cloud Cost Management @generated @skip @team:DataDog/cloud-cost-management Scenario: Create or replace a budget's custom forecast returns "Bad Request" response - Given operation "UpsertCustomForecast" enabled - And new "UpsertCustomForecast" request + Given new "UpsertCustomForecast" request And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/cloud-cost-management Scenario: Create or replace a budget's custom forecast returns "Not Found" response - Given operation "UpsertCustomForecast" enabled - And new "UpsertCustomForecast" request + Given new "UpsertCustomForecast" request And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/cloud-cost-management Scenario: Create or replace a budget's custom forecast returns "OK" response - Given operation "UpsertCustomForecast" enabled - And new "UpsertCustomForecast" request + Given new "UpsertCustomForecast" request And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}} When the request is sent Then the response status is 200 OK @@ -237,24 +234,21 @@ Feature: Cloud Cost Management @generated @skip @team:DataDog/cloud-cost-management Scenario: Delete a budget's custom forecast returns "Bad Request" response - Given operation "DeleteCustomForecast" enabled - And new "DeleteCustomForecast" request + Given new "DeleteCustomForecast" request And request contains "budget_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/cloud-cost-management Scenario: Delete a budget's custom forecast returns "No Content" response - Given operation "DeleteCustomForecast" enabled - And new "DeleteCustomForecast" request + Given new "DeleteCustomForecast" request And request contains "budget_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/cloud-cost-management Scenario: Delete a budget's custom forecast returns "Not Found" response - Given operation "DeleteCustomForecast" enabled - And new "DeleteCustomForecast" request + Given new "DeleteCustomForecast" request And request contains "budget_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @@ -377,24 +371,21 @@ Feature: Cloud Cost Management @generated @skip @team:DataDog/cloud-cost-management Scenario: Get a budget's custom forecast returns "Bad Request" response - Given operation "GetCustomForecast" enabled - And new "GetCustomForecast" request + Given new "GetCustomForecast" request And request contains "budget_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/cloud-cost-management Scenario: Get a budget's custom forecast returns "Not Found" response - Given operation "GetCustomForecast" enabled - And new "GetCustomForecast" request + Given new "GetCustomForecast" request And request contains "budget_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/cloud-cost-management Scenario: Get a budget's custom forecast returns "OK" response - Given operation "GetCustomForecast" enabled - And new "GetCustomForecast" request + Given new "GetCustomForecast" request And request contains "budget_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index b85b0ffb9d18..2c5ef75a1d65 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -430,7 +430,6 @@ def initialize "v2.get_code_coverage_branch_summary": false, "v2.get_code_coverage_commit_summary": false, "v2.get_rule_based_view": false, - "v2.delete_custom_forecast": false, "v2.get_commitments_commitment_list": false, "v2.get_commitments_coverage_scalar": false, "v2.get_commitments_coverage_timeseries": false, @@ -441,7 +440,6 @@ def initialize "v2.get_commitments_utilization_timeseries": false, "v2.get_cost_anomaly": false, "v2.get_cost_tag_metadata_currency": false, - "v2.get_custom_forecast": false, "v2.list_cost_anomalies": false, "v2.list_cost_tag_key_sources": false, "v2.list_cost_tag_metadata": false, @@ -449,7 +447,6 @@ def initialize "v2.list_cost_tag_metadata_months": false, "v2.list_cost_tag_metadata_orchestrators": false, "v2.search_cost_recommendations": false, - "v2.upsert_custom_forecast": false, "v2.create_ownership_feedback": false, "v2.get_ownership_evidence": false, "v2.get_ownership_inference": false, diff --git a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb index ff1881411060..903c6e5f43d7 100644 --- a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb @@ -843,12 +843,6 @@ def delete_custom_forecast(budget_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_custom_forecast_with_http_info(budget_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.delete_custom_forecast".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_custom_forecast") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_custom_forecast")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_forecast ...' @@ -2585,12 +2579,6 @@ def get_custom_forecast(budget_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CustomForecastResponse, Integer, Hash)>] CustomForecastResponse data, response status code and response headers def get_custom_forecast_with_http_info(budget_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.get_custom_forecast".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_custom_forecast") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_custom_forecast")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_forecast ...' @@ -4874,12 +4862,6 @@ def upsert_custom_forecast(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CustomForecastResponse, Integer, Hash)>] CustomForecastResponse data, response status code and response headers def upsert_custom_forecast_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.upsert_custom_forecast".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.upsert_custom_forecast") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.upsert_custom_forecast")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.upsert_custom_forecast ...' diff --git a/lib/datadog_api_client/v2/models/incident_user_defined_role_data_attributes_request.rb b/lib/datadog_api_client/v2/models/incident_user_defined_role_data_attributes_request.rb index 73c5524a0d60..33a9a49fee5e 100644 --- a/lib/datadog_api_client/v2/models/incident_user_defined_role_data_attributes_request.rb +++ b/lib/datadog_api_client/v2/models/incident_user_defined_role_data_attributes_request.rb @@ -28,7 +28,7 @@ class IncidentUserDefinedRoleDataAttributesRequest attr_reader :name # Policy configuration for a user-defined role. - attr_reader :policy + attr_accessor :policy attr_accessor :additional_properties @@ -96,7 +96,6 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @name.nil? - return false if @policy.nil? true end @@ -110,16 +109,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param policy [Object] Object to be assigned - # @!visibility private - def policy=(policy) - if policy.nil? - fail ArgumentError, 'invalid value for "policy", policy cannot be nil.' - end - @policy = policy - end - # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private