Skip to content

Commit bf8d441

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit c758880 of spec repo (#3841)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d9d5c67 commit bf8d441

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+5191
-88
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1224 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-04-01T20:36:45.896Z"

cassettes/v2/Feature-Flags_3833710718/Create-allocation-for-a-flag-in-an-environment-returns-Created-response_1397720344/recording.har

Lines changed: 253 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-04-01T20:36:50.944Z"

cassettes/v2/Feature-Flags_3833710718/Update-targeting-rules-for-a-flag-in-an-environment-returns-OK-response_1080924031/recording.har

Lines changed: 253 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/feature_flags.feature

Lines changed: 224 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/given.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,27 @@
465465
"tag": "Feature Flags",
466466
"operationId": "CreateFeatureFlagsEnvironment"
467467
},
468+
{
469+
"parameters": [
470+
{
471+
"name": "feature_flag_id",
472+
"source": "feature_flag.data.id"
473+
},
474+
{
475+
"name": "environment_id",
476+
"source": "environment.data.id"
477+
},
478+
{
479+
"name": "body",
480+
"value": "{\"data\":[{\"type\":\"allocations\",\"attributes\":{\"name\":\"Exposure Schedule Allocation {{ unique }}\",\"key\":\"exposure-schedule-allocation-{{ unique_lower }}\",\"type\":\"CANARY\",\"targeting_rules\":[],\"variant_weights\":[{\"variant_id\":\"{{ feature_flag.data.attributes.variants[0].id }}\",\"value\":100}],\"exposure_schedule\":{\"rollout_options\":{\"strategy\":\"UNIFORM_INTERVALS\",\"autostart\":false,\"selection_interval_ms\":86400000},\"rollout_steps\":[{\"exposure_ratio\":0.5,\"interval_ms\":null,\"is_pause_record\":false,\"grouped_step_index\":0},{\"exposure_ratio\":1,\"interval_ms\":null,\"is_pause_record\":false,\"grouped_step_index\":1}]},\"guardrail_metrics\":[]}}]}"
481+
}
482+
],
483+
"source": "data[0].attributes.exposure_schedule",
484+
"step": "there is a valid \"exposure_schedule\" in the system",
485+
"key": "exposure_schedule",
486+
"tag": "Feature Flags",
487+
"operationId": "UpdateAllocationsForFeatureFlagInEnvironment"
488+
},
468489
{
469490
"parameters": [
470491
{

features/v2/undo.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,30 @@
18411841
"type": "idempotent"
18421842
}
18431843
},
1844+
"PauseExposureSchedule": {
1845+
"tag": "Feature Flags",
1846+
"undo": {
1847+
"type": "idempotent"
1848+
}
1849+
},
1850+
"ResumeExposureSchedule": {
1851+
"tag": "Feature Flags",
1852+
"undo": {
1853+
"type": "idempotent"
1854+
}
1855+
},
1856+
"StartExposureSchedule": {
1857+
"tag": "Feature Flags",
1858+
"undo": {
1859+
"type": "idempotent"
1860+
}
1861+
},
1862+
"StopExposureSchedule": {
1863+
"tag": "Feature Flags",
1864+
"undo": {
1865+
"type": "idempotent"
1866+
}
1867+
},
18441868
"GetFeatureFlag": {
18451869
"tag": "Feature Flags",
18461870
"undo": {
@@ -1866,6 +1890,18 @@
18661890
"type": "unsafe"
18671891
}
18681892
},
1893+
"CreateAllocationsForFeatureFlagInEnvironment": {
1894+
"tag": "Feature Flags",
1895+
"undo": {
1896+
"type": "idempotent"
1897+
}
1898+
},
1899+
"UpdateAllocationsForFeatureFlagInEnvironment": {
1900+
"tag": "Feature Flags",
1901+
"undo": {
1902+
"type": "idempotent"
1903+
}
1904+
},
18691905
"DisableFeatureFlagEnvironment": {
18701906
"tag": "Feature Flags",
18711907
"undo": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6282,6 +6282,34 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
62826282
},
62836283
operationResponseType: "{}",
62846284
},
6285+
"FeatureFlagsApi.V2.PauseExposureSchedule": {
6286+
exposureScheduleId: {
6287+
type: "string",
6288+
format: "uuid",
6289+
},
6290+
operationResponseType: "AllocationExposureScheduleResponse",
6291+
},
6292+
"FeatureFlagsApi.V2.ResumeExposureSchedule": {
6293+
exposureScheduleId: {
6294+
type: "string",
6295+
format: "uuid",
6296+
},
6297+
operationResponseType: "AllocationExposureScheduleResponse",
6298+
},
6299+
"FeatureFlagsApi.V2.StartExposureSchedule": {
6300+
exposureScheduleId: {
6301+
type: "string",
6302+
format: "uuid",
6303+
},
6304+
operationResponseType: "AllocationExposureScheduleResponse",
6305+
},
6306+
"FeatureFlagsApi.V2.StopExposureSchedule": {
6307+
exposureScheduleId: {
6308+
type: "string",
6309+
format: "uuid",
6310+
},
6311+
operationResponseType: "AllocationExposureScheduleResponse",
6312+
},
62856313
"FeatureFlagsApi.V2.GetFeatureFlag": {
62866314
featureFlagId: {
62876315
type: "string",
@@ -6307,6 +6335,36 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
63076335
},
63086336
operationResponseType: "FeatureFlagResponse",
63096337
},
6338+
"FeatureFlagsApi.V2.UpdateAllocationsForFeatureFlagInEnvironment": {
6339+
featureFlagId: {
6340+
type: "string",
6341+
format: "uuid",
6342+
},
6343+
environmentId: {
6344+
type: "string",
6345+
format: "uuid",
6346+
},
6347+
body: {
6348+
type: "OverwriteAllocationsRequest",
6349+
format: "",
6350+
},
6351+
operationResponseType: "ListAllocationsResponse",
6352+
},
6353+
"FeatureFlagsApi.V2.CreateAllocationsForFeatureFlagInEnvironment": {
6354+
featureFlagId: {
6355+
type: "string",
6356+
format: "uuid",
6357+
},
6358+
environmentId: {
6359+
type: "string",
6360+
format: "uuid",
6361+
},
6362+
body: {
6363+
type: "CreateAllocationsRequest",
6364+
format: "",
6365+
},
6366+
operationResponseType: "AllocationResponse",
6367+
},
63106368
"FeatureFlagsApi.V2.DisableFeatureFlagEnvironment": {
63116369
featureFlagId: {
63126370
type: "string",

0 commit comments

Comments
 (0)