From d2f4e721f886827be5529f3bb8b2ffe3360d7237 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 16 Dec 2025 17:55:58 +0000 Subject: [PATCH] Regenerate client from commit f202d5e of spec repo --- .generator/schemas/v2/openapi.yaml | 27 +++++++++---------- examples/v2/reference-tables/UpsertRows.rb | 2 +- features/v2/incidents.feature | 6 ++--- features/v2/reference_tables.feature | 6 ++--- lib/datadog_api_client/configuration.rb | 3 --- .../v2/api/incidents_api.rb | 18 ------------- ...tch_upsert_rows_request_data_attributes.rb | 2 +- 7 files changed, 19 insertions(+), 45 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5d738d0d1f0..7c89835b6ed 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6968,15 +6968,21 @@ components: BatchUpsertRowsRequestDataAttributes: description: Attributes containing row data values for row creation or update operations. + example: + values: + age: 25 + example_key_value: primary_key_value + name: row_name properties: values: additionalProperties: - x-required-field: true - description: Key-value pairs representing row data, where keys are field - names from the schema. - example: - example_key_value: primary_key_value - name: row_name + oneOf: + - type: string + - format: int32 + maximum: 2147483647 + type: integer + description: Key-value pairs representing row data, where keys are schema + field names and values match the corresponding column types. type: object required: - values @@ -69084,9 +69090,6 @@ paths: operator: OR permissions: - incident_read - x-unstable: '**Note**: This endpoint is in Preview. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' post: description: Create an impact for an incident. operationId: CreateIncidentImpact @@ -69130,9 +69133,6 @@ paths: operator: OR permissions: - incident_write - x-unstable: '**Note**: This endpoint is in Preview. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/incidents/{incident_id}/impacts/{impact_id}: delete: description: Delete an incident impact. @@ -69163,9 +69163,6 @@ paths: operator: OR permissions: - incident_write - x-unstable: '**Note**: This endpoint is in Preview. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/incidents/{incident_id}/relationships/integrations: get: description: Get all integration metadata for an incident. diff --git a/examples/v2/reference-tables/UpsertRows.rb b/examples/v2/reference-tables/UpsertRows.rb index 2be0aa5d10a..6c1b653fc59 100644 --- a/examples/v2/reference-tables/UpsertRows.rb +++ b/examples/v2/reference-tables/UpsertRows.rb @@ -8,7 +8,7 @@ DatadogAPIClient::V2::BatchUpsertRowsRequestData.new({ attributes: DatadogAPIClient::V2::BatchUpsertRowsRequestDataAttributes.new({ values: { - example_key_value: "primary_key_value", name: "row_name", + age: 25, example_key_value: "primary_key_value", name: "row_name", }, }), id: "primary_key_value", diff --git a/features/v2/incidents.feature b/features/v2/incidents.feature index 74ae965968f..12ab3e2f5ba 100644 --- a/features/v2/incidents.feature +++ b/features/v2/incidents.feature @@ -806,16 +806,14 @@ Feature: Incidents @generated @skip @team:DataDog/incident-app Scenario: List an incident's impacts returns "Bad Request" response - Given operation "ListIncidentImpacts" enabled - And new "ListIncidentImpacts" request + Given new "ListIncidentImpacts" request And request contains "incident_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/incident-app Scenario: List an incident's impacts returns "Not Found" response - Given operation "ListIncidentImpacts" enabled - And new "ListIncidentImpacts" request + Given new "ListIncidentImpacts" request And request contains "incident_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found diff --git a/features/v2/reference_tables.feature b/features/v2/reference_tables.feature index 45a2861c15b..a233a6330ff 100644 --- a/features/v2/reference_tables.feature +++ b/features/v2/reference_tables.feature @@ -148,7 +148,7 @@ Feature: Reference Tables Scenario: Upsert rows returns "Bad Request" response Given new "UpsertRows" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]} + And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]} When the request is sent Then the response status is 400 Bad Request @@ -156,7 +156,7 @@ Feature: Reference Tables Scenario: Upsert rows returns "Not Found" response Given new "UpsertRows" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]} + And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]} When the request is sent Then the response status is 404 Not Found @@ -164,6 +164,6 @@ Feature: Reference Tables Scenario: Upsert rows returns "Rows created or updated successfully" response Given new "UpsertRows" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]} + And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]} When the request is sent Then the response status is 200 Rows created or updated successfully diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 358c6549b86..707078fa917 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -249,14 +249,12 @@ def initialize "v2.update_deployment_gate": false, "v2.update_deployment_rule": false, "v2.create_incident": false, - "v2.create_incident_impact": false, "v2.create_incident_integration": false, "v2.create_incident_notification_rule": false, "v2.create_incident_notification_template": false, "v2.create_incident_todo": false, "v2.create_incident_type": false, "v2.delete_incident": false, - "v2.delete_incident_impact": false, "v2.delete_incident_integration": false, "v2.delete_incident_notification_rule": false, "v2.delete_incident_notification_template": false, @@ -269,7 +267,6 @@ def initialize "v2.get_incident_todo": false, "v2.get_incident_type": false, "v2.list_incident_attachments": false, - "v2.list_incident_impacts": false, "v2.list_incident_integrations": false, "v2.list_incident_notification_rules": false, "v2.list_incident_notification_templates": false, diff --git a/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index 6c19ac5d3bc..a1f004c3f4b 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -114,12 +114,6 @@ def create_incident_impact(incident_id, body, opts = {}) # @option opts [Array] :include Specifies which related resources should be included in the response. # @return [Array<(IncidentImpactResponse, Integer, Hash)>] IncidentImpactResponse data, response status code and response headers def create_incident_impact_with_http_info(incident_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_incident_impact".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_incident_impact") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_incident_impact")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentsAPI.create_incident_impact ...' @@ -639,12 +633,6 @@ def delete_incident_impact(incident_id, impact_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_incident_impact_with_http_info(incident_id, impact_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.delete_incident_impact".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_incident_impact") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_incident_impact")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentsAPI.delete_incident_impact ...' @@ -1601,12 +1589,6 @@ def list_incident_impacts(incident_id, opts = {}) # @option opts [Array] :include Specifies which related resources should be included in the response. # @return [Array<(IncidentImpactsResponse, Integer, Hash)>] IncidentImpactsResponse data, response status code and response headers def list_incident_impacts_with_http_info(incident_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_incident_impacts".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_incident_impacts") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_incident_impacts")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incident_impacts ...' diff --git a/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb b/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb index e98f807a8b9..0adcdc3aa56 100644 --- a/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class BatchUpsertRowsRequestDataAttributes include BaseGenericModel - # Key-value pairs representing row data, where keys are field names from the schema. + # Key-value pairs representing row data, where keys are schema field names and values match the corresponding column types. attr_reader :values attr_accessor :additional_properties