diff --git a/.generator/src/generator/templates/example.j2 b/.generator/src/generator/templates/example.j2 index f9ab407fbe1..e8666053da0 100644 --- a/.generator/src/generator/templates/example.j2 +++ b/.generator/src/generator/templates/example.j2 @@ -6,7 +6,7 @@ import * as fs from "fs"; import { client, {{ version }} } from "@datadog/datadog-api-client"; const configuration = client.createConfiguration(); -{%- for operation in context._enable_operations %} +{%- for operation in context._enable_operations|sort %} configuration.unstableOperations["{{ version }}.{{ operation|untitle_case }}"] = true; {%- endfor %} const apiInstance = new {{ version }}.{{ context.api_instance.name }}Api(configuration); diff --git a/examples/v2/security-monitoring/CancelHistoricalJob.ts b/examples/v2/security-monitoring/CancelHistoricalJob.ts index 173cc3cb536..6bff4c4b963 100644 --- a/examples/v2/security-monitoring/CancelHistoricalJob.ts +++ b/examples/v2/security-monitoring/CancelHistoricalJob.ts @@ -5,8 +5,8 @@ import { client, v2 } from "@datadog/datadog-api-client"; const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.runHistoricalJob"] = true; configuration.unstableOperations["v2.cancelHistoricalJob"] = true; +configuration.unstableOperations["v2.runHistoricalJob"] = true; const apiInstance = new v2.SecurityMonitoringApi(configuration); // there is a valid "historical_job" in the system