Skip to content

Commit c322092

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1b047b5 of spec repo
1 parent 47262ff commit c322092

6 files changed

Lines changed: 47 additions & 11 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102212,6 +102212,13 @@ paths:
102212102212
get:
102213102213
description: Get the list of all critical assets.
102214102214
operationId: ListSecurityMonitoringCriticalAssets
102215+
parameters:
102216+
- description: Query string.
102217+
in: query
102218+
name: query
102219+
required: false
102220+
schema:
102221+
type: string
102215102222
responses:
102216102223
'200':
102217102224
content:

examples/v1/dashboards/SendPublicDashboardInvitation.rb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
55

6-
# there is a valid "shared_dashboard" in the system
7-
SHARED_DASHBOARD_TOKEN = ENV["SHARED_DASHBOARD_TOKEN"]
8-
96
body = DatadogAPIClient::V1::SharedDashboardInvites.new({
10-
data: DatadogAPIClient::V1::SharedDashboardInvitesDataObject.new({
11-
attributes: DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes.new({
12-
email: "exampledashboard@datadoghq.com",
7+
data: [
8+
DatadogAPIClient::V1::SharedDashboardInvitesDataObject.new({
9+
attributes: DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes.new({
10+
email: "test@datadoghq.com",
11+
}),
12+
type: DatadogAPIClient::V1::DashboardInviteType::PUBLIC_DASHBOARD_INVITATION,
1313
}),
14-
type: DatadogAPIClient::V1::DashboardInviteType::PUBLIC_DASHBOARD_INVITATION,
15-
}),
14+
],
1615
})
17-
p api_instance.send_public_dashboard_invitation(SHARED_DASHBOARD_TOKEN, body)
16+
p api_instance.send_public_dashboard_invitation("token", body)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Send shared dashboard invitation email returns "OK"
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5+
6+
# there is a valid "shared_dashboard" in the system
7+
SHARED_DASHBOARD_TOKEN = ENV["SHARED_DASHBOARD_TOKEN"]
8+
9+
body = DatadogAPIClient::V1::SharedDashboardInvites.new({
10+
data: DatadogAPIClient::V1::SharedDashboardInvitesDataObject.new({
11+
attributes: DatadogAPIClient::V1::SharedDashboardInvitesDataObjectAttributes.new({
12+
email: "exampledashboard@datadoghq.com",
13+
}),
14+
type: DatadogAPIClient::V1::DashboardInviteType::PUBLIC_DASHBOARD_INVITATION,
15+
}),
16+
})
17+
p api_instance.send_public_dashboard_invitation(SHARED_DASHBOARD_TOKEN, body)

features/scenarios_model_mapping.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,9 @@
16071607
"filter_operating_system_name" => "String",
16081608
"filter_operating_system_version" => "String",
16091609
},
1610+
"v2.ListSecurityMonitoringCriticalAssets" => {
1611+
"query" => "String",
1612+
},
16101613
"v2.CreateSecurityMonitoringCriticalAsset" => {
16111614
"body" => "SecurityMonitoringCriticalAssetCreateRequest",
16121615
},

features/v1/dashboards.feature

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,17 +1358,25 @@ Feature: Dashboards
13581358
Then the response status is 404 Not Found
13591359

13601360
@team:DataDog/reporting-and-sharing
1361-
Scenario: Send shared dashboard invitation email returns "OK" response
1361+
Scenario: Send shared dashboard invitation email returns "OK"
13621362
Given there is a valid "dashboard" in the system
13631363
And there is a valid "shared_dashboard" in the system
13641364
And new "SendPublicDashboardInvitation" request
13651365
And request contains "token" parameter from "shared_dashboard.token"
13661366
And body with value {"data": {"attributes": {"email": "{{unique_lower_alnum}}@datadoghq.com"}, "type": "public_dashboard_invitation"}}
13671367
When the request is sent
13681368
Then the response status is 201 OK
1369-
And the response "data.attributes.email" has the same value as "shared_dashboard.share_list[0]"
1369+
And the response "data.attributes.email" has the same value as "shared_dashboard.share_list[1]"
13701370
And the response "data.attributes.share_token" has the same value as "shared_dashboard.token"
13711371

1372+
@generated @skip @team:DataDog/reporting-and-sharing
1373+
Scenario: Send shared dashboard invitation email returns "OK" response
1374+
Given new "SendPublicDashboardInvitation" request
1375+
And request contains "token" parameter from "REPLACE.ME"
1376+
And body with value {"data": [{"attributes": {"email": "test@datadoghq.com"}, "type": "public_dashboard_invitation"}]}
1377+
When the request is sent
1378+
Then the response status is 201 OK
1379+
13721380
@generated @skip @team:DataDog/dashboards-backend
13731381
Scenario: Update a dashboard returns "Bad Request" response
13741382
Given new "UpdateDashboard" request

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,6 +4326,7 @@ def list_security_monitoring_critical_assets(opts = {})
43264326
# Get the list of all critical assets.
43274327
#
43284328
# @param opts [Hash] the optional parameters
4329+
# @option opts [String] :query Query string.
43294330
# @return [Array<(SecurityMonitoringCriticalAssetsResponse, Integer, Hash)>] SecurityMonitoringCriticalAssetsResponse data, response status code and response headers
43304331
def list_security_monitoring_critical_assets_with_http_info(opts = {})
43314332

@@ -4337,6 +4338,7 @@ def list_security_monitoring_critical_assets_with_http_info(opts = {})
43374338

43384339
# query parameters
43394340
query_params = opts[:query_params] || {}
4341+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
43404342

43414343
# header parameters
43424344
header_params = opts[:header_params] || {}

0 commit comments

Comments
 (0)