Skip to content

Commit 9b52144

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove beta label notice on create pipeline API endpoint (#1367)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 0d19114 commit 9b52144

File tree

7 files changed

+9
-26
lines changed

7 files changed

+9
-26
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-10-13 08:13:47.863836",
8-
"spec_repo_commit": "30a99088"
7+
"regenerated": "2023-10-13 14:48:27.165828",
8+
"spec_repo_commit": "9c0d47b3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-13 08:13:47.878844",
13-
"spec_repo_commit": "30a99088"
12+
"regenerated": "2023-10-13 14:48:27.182800",
13+
"spec_repo_commit": "9c0d47b3"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19414,8 +19414,6 @@ paths:
1941419414
tags:
1941519415
- CI Visibility Pipelines
1941619416
x-codegen-request-body-name: body
19417-
x-unstable: '**Note**: This API endpoint is in private beta. Request access
19418-
[here](https://docs.google.com/forms/d/e/1FAIpQLSdNejCvhMbdBW5nnGly1yvmYMn2Wpj4JOI0zKIiEx6O6I2dbQ/viewform).'
1941919417
/api/v2/ci/pipelines/analytics/aggregate:
1942019418
post:
1942119419
description: Use this API endpoint to aggregate CI Visibility pipeline events

examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.createCIAppPipelineEvent"] = true;
98
const apiInstance = new v2.CIVisibilityPipelinesApi(configuration);
109

1110
const params: v2.CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest = {

examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.createCIAppPipelineEvent"] = true;
98
const apiInstance = new v2.CIVisibilityPipelinesApi(configuration);
109

1110
const params: v2.CIVisibilityPipelinesApiCreateCIAppPipelineEventRequest = {

features/v2/ci_visibility_pipelines.feature

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,40 +80,35 @@ Feature: CI Visibility Pipelines
8080

8181
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
8282
Scenario: Send pipeline event returns "Bad Request" response
83-
Given operation "CreateCIAppPipelineEvent" enabled
84-
And new "CreateCIAppPipelineEvent" request
83+
Given new "CreateCIAppPipelineEvent" request
8584
And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}}
8685
When the request is sent
8786
Then the response status is 400 Bad Request
8887

8988
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
9089
Scenario: Send pipeline event returns "Payload Too Large" response
91-
Given operation "CreateCIAppPipelineEvent" enabled
92-
And new "CreateCIAppPipelineEvent" request
90+
Given new "CreateCIAppPipelineEvent" request
9391
And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}}
9492
When the request is sent
9593
Then the response status is 413 Payload Too Large
9694

9795
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
9896
Scenario: Send pipeline event returns "Request Timeout" response
99-
Given operation "CreateCIAppPipelineEvent" enabled
100-
And new "CreateCIAppPipelineEvent" request
97+
Given new "CreateCIAppPipelineEvent" request
10198
And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}}
10299
When the request is sent
103100
Then the response status is 408 Request Timeout
104101

105102
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
106103
Scenario: Send pipeline event returns "Request accepted for processing" response
107-
Given operation "CreateCIAppPipelineEvent" enabled
108-
And new "CreateCIAppPipelineEvent" request
104+
Given new "CreateCIAppPipelineEvent" request
109105
And body with value {"data": {"attributes": {"resource": {"end": "{{ timeISO('now - 30s') }}", "level": "pipeline", "name": "Deploy to AWS", "partial_retry": false, "start": "{{ timeISO('now - 120s') }}", "status": "success", "unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", "url": "https://my-ci-provider.example/pipelines/my-pipeline/run/1","git":{"repository_url":"https://github.com/DataDog/datadog-agent","sha":"7f263865994b76066c4612fd1965215e7dcb4cd2","author_email":"[email protected]"}}}, "type": "cipipeline_resource_request"}}
110106
When the request is sent
111107
Then the response status is 202 Request accepted for processing
112108

113109
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
114110
Scenario: Send pipeline job event returns "Request accepted for processing" response
115-
Given operation "CreateCIAppPipelineEvent" enabled
116-
And new "CreateCIAppPipelineEvent" request
111+
Given new "CreateCIAppPipelineEvent" request
117112
And body with value {"data": {"attributes": {"resource": {"end": "{{ timeISO('now - 30s') }}", "level": "job", "name": "Build image", "start": "{{ timeISO('now - 120s') }}", "status": "error", "id": "cf9456de-8b9e-4c27-aa79-27b1e78c1a33", "pipeline_unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", "pipeline_name": "Deploy to AWS", "url": "https://my-ci-provider.example/jobs/my-jobs/run/1"}}, "type": "cipipeline_resource_request"}}
118113
When the request is sent
119114
Then the response status is 202 Request accepted for processing

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ export function createConfiguration(
214214
conf.backoffBase || 2,
215215
conf.backoffMultiplier || 2,
216216
{
217-
"v2.createCIAppPipelineEvent": false,
218217
"v2.listContainerImages": false,
219218
"v2.listEvents": false,
220219
"v2.searchEvents": false,

packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@ export class CIVisibilityPipelinesApiRequestFactory extends BaseAPIRequestFactor
7676
): Promise<RequestContext> {
7777
const _config = _options || this.configuration;
7878

79-
logger.warn("Using unstable operation 'createCIAppPipelineEvent'");
80-
if (!_config.unstableOperations["v2.createCIAppPipelineEvent"]) {
81-
throw new Error(
82-
"Unstable operation 'createCIAppPipelineEvent' is disabled"
83-
);
84-
}
85-
8679
// verify required parameter 'body' is not null or undefined
8780
if (body === null || body === undefined) {
8881
throw new RequiredError("body", "createCIAppPipelineEvent");

0 commit comments

Comments
 (0)