Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/dashboard-lists/DeleteDashboardListItems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@
},
"v2.DeleteDashboardListItems" => {
"dashboard_list_id" => "Integer",
"body" => "DashboardListDeleteItemsRequest",
"body" => "DashboardListRemoveItemsRequest",
},
"v2.GetDashboardListItems" => {
"dashboard_list_id" => "Integer",
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/api/dashboard_lists_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 = {}
Expand Down
Loading