Skip to content

Commit 5d82457

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fd043d0 of spec repo
1 parent 4c1f6aa commit 5d82457

20 files changed

+922
-2
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "1e6c346",
3-
"generated": "2025-08-25 18:45:37.801"
2+
"spec_repo_commit": "fd043d0",
3+
"generated": "2025-08-26 14:58:40.675"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14485,6 +14485,10 @@ components:
1448514485
description: Entity definition in raw JSON or YAML representation.
1448614486
example: "apiVersion: v3\nkind: service\nmetadata:\n name: myservice\n"
1448714487
type: string
14488+
EntityReference:
14489+
description: The unique reference for an IDP entity.
14490+
example: service:my-service
14491+
type: string
1448814492
EntityRelationships:
1448914493
description: Entity relationships.
1449014494
properties:
@@ -43829,6 +43833,57 @@ components:
4382943833
id:
4383043834
$ref: '#/components/schemas/ApiID'
4383143835
type: object
43836+
UpdateOutcomesAsyncAttributes:
43837+
description: The JSON:API attributes for a batched set of scorecard outcomes.
43838+
properties:
43839+
results:
43840+
description: Set of scorecard outcomes to update asynchronously.
43841+
items:
43842+
$ref: '#/components/schemas/UpdateOutcomesAsyncRequestItem'
43843+
type: array
43844+
type: object
43845+
UpdateOutcomesAsyncRequest:
43846+
description: Scorecard outcomes batch request.
43847+
properties:
43848+
data:
43849+
$ref: '#/components/schemas/UpdateOutcomesAsyncRequestData'
43850+
type: object
43851+
UpdateOutcomesAsyncRequestData:
43852+
description: Scorecard outcomes batch request data.
43853+
properties:
43854+
attributes:
43855+
$ref: '#/components/schemas/UpdateOutcomesAsyncAttributes'
43856+
type:
43857+
$ref: '#/components/schemas/UpdateOutcomesAsyncType'
43858+
type: object
43859+
UpdateOutcomesAsyncRequestItem:
43860+
description: Scorecard outcome for a single entity and rule.
43861+
properties:
43862+
entity_reference:
43863+
$ref: '#/components/schemas/EntityReference'
43864+
remarks:
43865+
description: Any remarks regarding the scorecard rule's evaluation. Supports
43866+
HTML hyperlinks.
43867+
example: 'See: <a href="https://app.datadoghq.com/services">Services</a>'
43868+
type: string
43869+
rule_id:
43870+
$ref: '#/components/schemas/RuleId'
43871+
state:
43872+
$ref: '#/components/schemas/State'
43873+
required:
43874+
- rule_id
43875+
- entity_reference
43876+
- state
43877+
type: object
43878+
UpdateOutcomesAsyncType:
43879+
default: batched-outcome
43880+
description: The JSON:API type for scorecard outcomes.
43881+
enum:
43882+
- batched-outcome
43883+
example: batched-outcome
43884+
type: string
43885+
x-enum-varnames:
43886+
- BATCHED_OUTCOME
4383243887
UpdateResourceEvaluationFiltersRequest:
4383343888
description: Request object to update a resource filter.
4383443889
properties:
@@ -61874,6 +61929,39 @@ paths:
6187461929
resultsPath: data
6187561930
x-unstable: '**Note**: This endpoint is in public beta.
6187661931

61932+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
61933+
post:
61934+
description: Updates multiple scorecard rule outcomes in a single batched request.
61935+
operationId: UpdateScorecardOutcomesAsync
61936+
requestBody:
61937+
content:
61938+
application/json:
61939+
schema:
61940+
$ref: '#/components/schemas/UpdateOutcomesAsyncRequest'
61941+
description: Set of scorecard outcomes.
61942+
required: true
61943+
responses:
61944+
'202':
61945+
description: Accepted
61946+
'400':
61947+
$ref: '#/components/responses/BadRequestResponse'
61948+
'403':
61949+
$ref: '#/components/responses/ForbiddenResponse'
61950+
'409':
61951+
$ref: '#/components/responses/ConflictResponse'
61952+
'429':
61953+
$ref: '#/components/responses/TooManyRequestsResponse'
61954+
security:
61955+
- apiKeyAuth: []
61956+
appKeyAuth: []
61957+
- AuthZ:
61958+
- apm_service_catalog_write
61959+
summary: Update Scorecard outcomes asynchronously
61960+
tags:
61961+
- Service Scorecards
61962+
x-codegen-request-body-name: body
61963+
x-unstable: '**Note**: This endpoint is in public beta.
61964+
6187761965
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6187861966
/api/v2/scorecard/outcomes/batch:
6187961967
post:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-08-26T14:46:17.790Z

cassettes/features/v2/service_scorecards/Update-Scorecard-outcomes-asynchronously-returns-Accepted-response.yml

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-08-26T14:46:19.541Z

cassettes/features/v2/service_scorecards/Update-Scorecard-outcomes-asynchronously-returns-Bad-Request-response.yml

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-08-26T14:46:20.159Z

cassettes/features/v2/service_scorecards/Update-Scorecard-outcomes-asynchronously-returns-Conflict-response.yml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Update Scorecard outcomes asynchronously returns "Accepted" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.update_scorecard_outcomes_async".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::ServiceScorecardsAPI.new
8+
9+
# there is a valid "create_scorecard_rule" in the system
10+
CREATE_SCORECARD_RULE_DATA_ID = ENV["CREATE_SCORECARD_RULE_DATA_ID"]
11+
12+
body = DatadogAPIClient::V2::UpdateOutcomesAsyncRequest.new({
13+
data: DatadogAPIClient::V2::UpdateOutcomesAsyncRequestData.new({
14+
attributes: DatadogAPIClient::V2::UpdateOutcomesAsyncAttributes.new({
15+
results: [
16+
DatadogAPIClient::V2::UpdateOutcomesAsyncRequestItem.new({
17+
rule_id: CREATE_SCORECARD_RULE_DATA_ID,
18+
entity_reference: "service:my-service",
19+
remarks: 'See: <a href="https://app.datadoghq.com/services">Services</a>',
20+
state: DatadogAPIClient::V2::State::PASS,
21+
}),
22+
],
23+
}),
24+
type: DatadogAPIClient::V2::UpdateOutcomesAsyncType::BATCHED_OUTCOME,
25+
}),
26+
})
27+
p api_instance.update_scorecard_outcomes_async(body)

features/scenarios_model_mapping.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,6 +2511,9 @@
25112511
"filter_rule_id" => "String",
25122512
"filter_rule_name" => "String",
25132513
},
2514+
"v2.UpdateScorecardOutcomesAsync" => {
2515+
"body" => "UpdateOutcomesAsyncRequest",
2516+
},
25142517
"v2.CreateScorecardOutcomesBatch" => {
25152518
"body" => "OutcomesBatchRequest",
25162519
},

0 commit comments

Comments
 (0)