From c322092f11025e1d35bfc0863d90cc2ed911f52c Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 18 Mar 2026 20:28:51 +0000 Subject: [PATCH] Regenerate client from commit 1b047b5 of spec repo --- .generator/schemas/v2/openapi.yaml | 7 +++++++ .../dashboards/SendPublicDashboardInvitation.rb | 17 ++++++++--------- .../SendPublicDashboardInvitation_4054061736.rb | 17 +++++++++++++++++ features/scenarios_model_mapping.rb | 3 +++ features/v1/dashboards.feature | 12 ++++++++++-- .../v2/api/security_monitoring_api.rb | 2 ++ 6 files changed, 47 insertions(+), 11 deletions(-) create mode 100644 examples/v1/dashboards/SendPublicDashboardInvitation_4054061736.rb diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 7c5de28af805..7ae721a4124b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -102212,6 +102212,13 @@ paths: get: description: Get the list of all critical assets. operationId: ListSecurityMonitoringCriticalAssets + parameters: + - description: Query string. + in: query + name: query + required: false + schema: + type: string responses: '200': content: diff --git a/examples/v1/dashboards/SendPublicDashboardInvitation.rb b/examples/v1/dashboards/SendPublicDashboardInvitation.rb index 19ab7c609ec7..a695f2e0d78a 100644 --- a/examples/v1/dashboards/SendPublicDashboardInvitation.rb +++ b/examples/v1/dashboards/SendPublicDashboardInvitation.rb @@ -3,15 +3,14 @@ require "datadog_api_client" api_instance = DatadogAPIClient::V1::DashboardsAPI.new -# there is a valid "shared_dashboard" in the system -SHARED_DASHBOARD_TOKEN = ENV["SHARED_DASHBOARD_TOKEN"] - body = DatadogAPIClient::V1::SharedDashboardInvites.new({ - data: DatadogAPIClient::V1::SharedDashboardInvitesDataObject.new({ - attributes: DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes.new({ - email: "exampledashboard@datadoghq.com", + data: [ + DatadogAPIClient::V1::SharedDashboardInvitesDataObject.new({ + attributes: DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes.new({ + email: "test@datadoghq.com", + }), + type: DatadogAPIClient::V1::DashboardInviteType::PUBLIC_DASHBOARD_INVITATION, }), - type: DatadogAPIClient::V1::DashboardInviteType::PUBLIC_DASHBOARD_INVITATION, - }), + ], }) -p api_instance.send_public_dashboard_invitation(SHARED_DASHBOARD_TOKEN, body) +p api_instance.send_public_dashboard_invitation("token", body) diff --git a/examples/v1/dashboards/SendPublicDashboardInvitation_4054061736.rb b/examples/v1/dashboards/SendPublicDashboardInvitation_4054061736.rb new file mode 100644 index 000000000000..543315f5e4bf --- /dev/null +++ b/examples/v1/dashboards/SendPublicDashboardInvitation_4054061736.rb @@ -0,0 +1,17 @@ +# Send shared dashboard invitation email returns "OK" + +require "datadog_api_client" +api_instance = DatadogAPIClient::V1::DashboardsAPI.new + +# there is a valid "shared_dashboard" in the system +SHARED_DASHBOARD_TOKEN = ENV["SHARED_DASHBOARD_TOKEN"] + +body = DatadogAPIClient::V1::SharedDashboardInvites.new({ + data: DatadogAPIClient::V1::SharedDashboardInvitesDataObject.new({ + attributes: DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes.new({ + email: "exampledashboard@datadoghq.com", + }), + type: DatadogAPIClient::V1::DashboardInviteType::PUBLIC_DASHBOARD_INVITATION, + }), +}) +p api_instance.send_public_dashboard_invitation(SHARED_DASHBOARD_TOKEN, body) diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index a3162c56f7a1..95f3727d7bec 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -1607,6 +1607,9 @@ "filter_operating_system_name" => "String", "filter_operating_system_version" => "String", }, + "v2.ListSecurityMonitoringCriticalAssets" => { + "query" => "String", + }, "v2.CreateSecurityMonitoringCriticalAsset" => { "body" => "SecurityMonitoringCriticalAssetCreateRequest", }, diff --git a/features/v1/dashboards.feature b/features/v1/dashboards.feature index e8c10d7cc5fe..9aa24434bd74 100644 --- a/features/v1/dashboards.feature +++ b/features/v1/dashboards.feature @@ -1358,7 +1358,7 @@ Feature: Dashboards Then the response status is 404 Not Found @team:DataDog/reporting-and-sharing - Scenario: Send shared dashboard invitation email returns "OK" response + Scenario: Send shared dashboard invitation email returns "OK" Given there is a valid "dashboard" in the system And there is a valid "shared_dashboard" in the system And new "SendPublicDashboardInvitation" request @@ -1366,9 +1366,17 @@ Feature: Dashboards And body with value {"data": {"attributes": {"email": "{{unique_lower_alnum}}@datadoghq.com"}, "type": "public_dashboard_invitation"}} When the request is sent Then the response status is 201 OK - And the response "data.attributes.email" has the same value as "shared_dashboard.share_list[0]" + And the response "data.attributes.email" has the same value as "shared_dashboard.share_list[1]" And the response "data.attributes.share_token" has the same value as "shared_dashboard.token" + @generated @skip @team:DataDog/reporting-and-sharing + Scenario: Send shared dashboard invitation email returns "OK" response + Given new "SendPublicDashboardInvitation" request + And request contains "token" parameter from "REPLACE.ME" + And body with value {"data": [{"attributes": {"email": "test@datadoghq.com"}, "type": "public_dashboard_invitation"}]} + When the request is sent + Then the response status is 201 OK + @generated @skip @team:DataDog/dashboards-backend Scenario: Update a dashboard returns "Bad Request" response Given new "UpdateDashboard" request diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 3192e46a021f..c185ce633926 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -4326,6 +4326,7 @@ def list_security_monitoring_critical_assets(opts = {}) # Get the list of all critical assets. # # @param opts [Hash] the optional parameters + # @option opts [String] :query Query string. # @return [Array<(SecurityMonitoringCriticalAssetsResponse, Integer, Hash)>] SecurityMonitoringCriticalAssetsResponse data, response status code and response headers def list_security_monitoring_critical_assets_with_http_info(opts = {}) @@ -4337,6 +4338,7 @@ def list_security_monitoring_critical_assets_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? # header parameters header_params = opts[:header_params] || {}