Skip to content

Commit

Permalink
Regenerate client from commit 9673a7f6 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 25, 2022
1 parent f39990a commit 783c175
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2022-10-25 16:39:03.429773",
"spec_repo_commit": "afdd6b70"
"regenerated": "2022-10-25 17:03:49.624394",
"spec_repo_commit": "9673a7f6"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-10-25 16:39:03.449124",
"spec_repo_commit": "afdd6b70"
"regenerated": "2022-10-25 17:03:49.640407",
"spec_repo_commit": "9673a7f6"
}
}
}
3 changes: 0 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25271,9 +25271,6 @@ paths:
summary: Get an SLO's history
tags:
- Service Level Objectives
x-unstable: '**Note**: This endpoint is in public beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v1/synthetics/ci/batch/{batch_id}:
get:
description: Get a batch's updated details.
Expand Down
1 change: 0 additions & 1 deletion examples/v1/service-level-objectives/GetSLOHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import { client, v1 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration();
configuration.unstableOperations["v1.getSLOHistory"] = true;
const apiInstance = new v1.ServiceLevelObjectivesApi(configuration);

// there is a valid "slo" in the system
Expand Down
7 changes: 2 additions & 5 deletions features/v1/service_level_objectives.feature
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ Feature: Service Level Objectives

@generated @skip @team:DataDog/slo-app
Scenario: Get an SLO's history returns "Bad Request" response
Given operation "GetSLOHistory" enabled
And new "GetSLOHistory" request
Given new "GetSLOHistory" request
And request contains "slo_id" parameter from "REPLACE.ME"
And request contains "from_ts" parameter from "REPLACE.ME"
And request contains "to_ts" parameter from "REPLACE.ME"
Expand All @@ -158,8 +157,7 @@ Feature: Service Level Objectives

@generated @skip @team:DataDog/slo-app
Scenario: Get an SLO's history returns "Not Found" response
Given operation "GetSLOHistory" enabled
And new "GetSLOHistory" request
Given new "GetSLOHistory" request
And request contains "slo_id" parameter from "REPLACE.ME"
And request contains "from_ts" parameter from "REPLACE.ME"
And request contains "to_ts" parameter from "REPLACE.ME"
Expand All @@ -169,7 +167,6 @@ Feature: Service Level Objectives
@team:DataDog/slo-app
Scenario: Get an SLO's history returns "OK" response
Given there is a valid "slo" in the system
And operation "GetSLOHistory" enabled
And new "GetSLOHistory" request
And request contains "slo_id" parameter from "slo.data[0].id"
And request contains "from_ts" parameter with value {{ timestamp("now - 1d") }}
Expand Down
1 change: 0 additions & 1 deletion packages/datadog-api-client-common/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export function createConfiguration(
serverIndex: conf.serverIndex || 0,
operationServerIndices: conf.operationServerIndices || {},
unstableOperations: {
"v1.getSLOHistory": false,
"v1.searchSLO": false,
"v2.listEvents": false,
"v2.searchEvents": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,6 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto
): Promise<RequestContext> {
const _config = _options || this.configuration;

logger.warn("Using unstable operation 'getSLOHistory'");
if (!_config.unstableOperations["v1.getSLOHistory"]) {
throw new Error("Unstable operation 'getSLOHistory' is disabled");
}

// verify required parameter 'sloId' is not null or undefined
if (sloId === null || sloId === undefined) {
throw new RequiredError(
Expand Down

0 comments on commit 783c175

Please sign in to comment.