diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d14c3e4112d7..04ab243c2354 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -19144,15 +19144,6 @@ components: $ref: "#/components/schemas/DashboardListItemResponse" type: array type: object - DashboardListDeleteItemsRequest: - description: Request containing a list of dashboards to delete. - properties: - dashboards: - description: List of dashboards to delete from the dashboard list. - items: - $ref: "#/components/schemas/DashboardListItemRequest" - type: array - type: object DashboardListDeleteItemsResponse: description: Response containing a list of deleted dashboards. properties: @@ -19276,6 +19267,15 @@ components: required: - dashboards type: object + DashboardListRemoveItemsRequest: + description: Request containing a list of dashboards to remove. + properties: + dashboards: + description: List of dashboards to delete from the dashboard list. + items: + $ref: "#/components/schemas/DashboardListItemRequest" + type: array + type: object DashboardListUpdateItemsRequest: description: Request containing the list of dashboards to update to. properties: @@ -81673,7 +81673,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DashboardListDeleteItemsRequest" + $ref: "#/components/schemas/DashboardListRemoveItemsRequest" description: Dashboards to delete from the dashboard list. required: true responses: diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems.rb b/examples/v2/dashboard-lists/DeleteDashboardListItems.rb index 9eca5a2d346b..b4cc6f00c72b 100644 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems.rb +++ b/examples/v2/dashboard-lists/DeleteDashboardListItems.rb @@ -3,7 +3,7 @@ require "datadog_api_client" api_instance = DatadogAPIClient::V2::DashboardListsAPI.new -body = DatadogAPIClient::V2::DashboardListDeleteItemsRequest.new({ +body = DatadogAPIClient::V2::DashboardListRemoveItemsRequest.new({ dashboards: [ DatadogAPIClient::V2::DashboardListItemRequest.new({ id: "q5j-nti-fv6", diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb b/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb index 56a0abfcf266..a172d8058b9d 100644 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb +++ b/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb @@ -9,7 +9,7 @@ # there is a valid "dashboard" in the system DASHBOARD_ID = ENV["DASHBOARD_ID"] -body = DatadogAPIClient::V2::DashboardListDeleteItemsRequest.new({ +body = DatadogAPIClient::V2::DashboardListRemoveItemsRequest.new({ dashboards: [ DatadogAPIClient::V2::DashboardListItemRequest.new({ id: DASHBOARD_ID, diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb b/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb index 5640ce7416c0..ff658a3124d4 100644 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb +++ b/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb @@ -9,7 +9,7 @@ # there is a valid "screenboard_dashboard" in the system SCREENBOARD_DASHBOARD_ID = ENV["SCREENBOARD_DASHBOARD_ID"] -body = DatadogAPIClient::V2::DashboardListDeleteItemsRequest.new({ +body = DatadogAPIClient::V2::DashboardListRemoveItemsRequest.new({ dashboards: [ DatadogAPIClient::V2::DashboardListItemRequest.new({ id: SCREENBOARD_DASHBOARD_ID, diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index df090cea2c0a..359e05658969 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -2001,7 +2001,7 @@ }, "v2.DeleteDashboardListItems" => { "dashboard_list_id" => "Integer", - "body" => "DashboardListDeleteItemsRequest", + "body" => "DashboardListRemoveItemsRequest", }, "v2.GetDashboardListItems" => { "dashboard_list_id" => "Integer", diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 1ad2605d59ac..78ba6d459c45 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -2133,12 +2133,12 @@ def overrides "v2.cvss" => "CVSS", "v2.dashboard_list_add_items_request" => "DashboardListAddItemsRequest", "v2.dashboard_list_add_items_response" => "DashboardListAddItemsResponse", - "v2.dashboard_list_delete_items_request" => "DashboardListDeleteItemsRequest", "v2.dashboard_list_delete_items_response" => "DashboardListDeleteItemsResponse", "v2.dashboard_list_item" => "DashboardListItem", "v2.dashboard_list_item_request" => "DashboardListItemRequest", "v2.dashboard_list_item_response" => "DashboardListItemResponse", "v2.dashboard_list_items" => "DashboardListItems", + "v2.dashboard_list_remove_items_request" => "DashboardListRemoveItemsRequest", "v2.dashboard_list_update_items_request" => "DashboardListUpdateItemsRequest", "v2.dashboard_list_update_items_response" => "DashboardListUpdateItemsResponse", "v2.dashboard_trigger_wrapper" => "DashboardTriggerWrapper", diff --git a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb index 3c9136d76101..c9ce3c7090a7 100644 --- a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb @@ -108,7 +108,7 @@ def delete_dashboard_list_items(dashboard_list_id, body, opts = {}) # Delete dashboards from an existing dashboard list. # # @param dashboard_list_id [Integer] ID of the dashboard list to delete items from. - # @param body [DashboardListDeleteItemsRequest] Dashboards to delete from the dashboard list. + # @param body [DashboardListRemoveItemsRequest] Dashboards to delete from the dashboard list. # @param opts [Hash] the optional parameters # @return [Array<(DashboardListDeleteItemsResponse, Integer, Hash)>] DashboardListDeleteItemsResponse data, response status code and response headers def delete_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_remove_items_request.rb similarity index 95% rename from lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb rename to lib/datadog_api_client/v2/models/dashboard_list_remove_items_request.rb index f7f1ff4beb88..d57636937fbd 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_remove_items_request.rb @@ -17,8 +17,8 @@ require 'time' module DatadogAPIClient::V2 - # Request containing a list of dashboards to delete. - class DashboardListDeleteItemsRequest + # Request containing a list of dashboards to remove. + class DashboardListRemoveItemsRequest include BaseGenericModel # List of dashboards to delete from the dashboard list. @@ -47,7 +47,7 @@ def self.openapi_types # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListDeleteItemsRequest` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListRemoveItemsRequest` initialize method" end self.additional_properties = {}