Skip to content

Commit d507e7e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0197a1bb of spec repo
1 parent 0e03968 commit d507e7e

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
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": "2024-03-13 19:22:35.943343",
8-
"spec_repo_commit": "5745e5bb"
7+
"regenerated": "2024-03-14 17:33:32.919316",
8+
"spec_repo_commit": "0197a1bb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-13 19:22:35.960822",
13-
"spec_repo_commit": "5745e5bb"
12+
"regenerated": "2024-03-14 17:33:32.937092",
13+
"spec_repo_commit": "0197a1bb"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19683,6 +19683,14 @@ components:
1968319683
feature, which the service is a part of.
1968419684
example: my-app
1968519685
type: string
19686+
ci-pipeline-fingerprints:
19687+
description: A set of CI fingerprints.
19688+
example:
19689+
- j88xdEy0J5lc
19690+
- eZ7LMljCk8vo
19691+
items:
19692+
type: string
19693+
type: array
1968619694
contacts:
1968719695
description: A list of contacts related to the services.
1968819696
items:

examples/v2/service-definition/CreateOrUpdateServiceDefinitions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const apiInstance = new v2.ServiceDefinitionApi(configuration);
1010
const params: v2.ServiceDefinitionApiCreateOrUpdateServiceDefinitionsRequest = {
1111
body: {
1212
application: "my-app",
13+
ciPipelineFingerprints: ["j88xdEy0J5lc", "eZ7LMljCk8vo"],
1314
contacts: [
1415
{
1516
contact: "https://teams.microsoft.com/myteam",

features/v2/service_definition.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ Feature: Service Definition
1010
@generated @skip @team:DataDog/service-catalog
1111
Scenario: Create or update service definition returns "Bad Request" response
1212
Given new "CreateOrUpdateServiceDefinitions" request
13-
And body with value {"application": "my-app", "contacts": [{"contact": "https://teams.microsoft.com/myteam", "name": "My team channel", "type": "slack"}], "dd-service": "my-service", "description": "My service description", "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": {"service-url": "https://my-org.pagerduty.com/service-directory/PMyService"}}, "languages": ["dotnet", "go", "java", "js", "php", "python", "ruby", "c++"], "lifecycle": "sandbox", "links": [{"name": "Runbook", "provider": "Github", "type": "runbook", "url": "https://my-runbook"}], "schema-version": "v2.2", "tags": ["my:tag", "service:tag"], "team": "my-team", "tier": "High", "type": "web"}
13+
And body with value {"application": "my-app", "ci-pipeline-fingerprints": ["j88xdEy0J5lc", "eZ7LMljCk8vo"], "contacts": [{"contact": "https://teams.microsoft.com/myteam", "name": "My team channel", "type": "slack"}], "dd-service": "my-service", "description": "My service description", "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": {"service-url": "https://my-org.pagerduty.com/service-directory/PMyService"}}, "languages": ["dotnet", "go", "java", "js", "php", "python", "ruby", "c++"], "lifecycle": "sandbox", "links": [{"name": "Runbook", "provider": "Github", "type": "runbook", "url": "https://my-runbook"}], "schema-version": "v2.2", "tags": ["my:tag", "service:tag"], "team": "my-team", "tier": "High", "type": "web"}
1414
When the request is sent
1515
Then the response status is 400 Bad Request
1616

1717
@generated @skip @team:DataDog/service-catalog
1818
Scenario: Create or update service definition returns "CREATED" response
1919
Given new "CreateOrUpdateServiceDefinitions" request
20-
And body with value {"application": "my-app", "contacts": [{"contact": "https://teams.microsoft.com/myteam", "name": "My team channel", "type": "slack"}], "dd-service": "my-service", "description": "My service description", "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": {"service-url": "https://my-org.pagerduty.com/service-directory/PMyService"}}, "languages": ["dotnet", "go", "java", "js", "php", "python", "ruby", "c++"], "lifecycle": "sandbox", "links": [{"name": "Runbook", "provider": "Github", "type": "runbook", "url": "https://my-runbook"}], "schema-version": "v2.2", "tags": ["my:tag", "service:tag"], "team": "my-team", "tier": "High", "type": "web"}
20+
And body with value {"application": "my-app", "ci-pipeline-fingerprints": ["j88xdEy0J5lc", "eZ7LMljCk8vo"], "contacts": [{"contact": "https://teams.microsoft.com/myteam", "name": "My team channel", "type": "slack"}], "dd-service": "my-service", "description": "My service description", "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": {"service-url": "https://my-org.pagerduty.com/service-directory/PMyService"}}, "languages": ["dotnet", "go", "java", "js", "php", "python", "ruby", "c++"], "lifecycle": "sandbox", "links": [{"name": "Runbook", "provider": "Github", "type": "runbook", "url": "https://my-runbook"}], "schema-version": "v2.2", "tags": ["my:tag", "service:tag"], "team": "my-team", "tier": "High", "type": "web"}
2121
When the request is sent
2222
Then the response status is 200 CREATED
2323

2424
@generated @skip @team:DataDog/service-catalog
2525
Scenario: Create or update service definition returns "Conflict" response
2626
Given new "CreateOrUpdateServiceDefinitions" request
27-
And body with value {"application": "my-app", "contacts": [{"contact": "https://teams.microsoft.com/myteam", "name": "My team channel", "type": "slack"}], "dd-service": "my-service", "description": "My service description", "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": {"service-url": "https://my-org.pagerduty.com/service-directory/PMyService"}}, "languages": ["dotnet", "go", "java", "js", "php", "python", "ruby", "c++"], "lifecycle": "sandbox", "links": [{"name": "Runbook", "provider": "Github", "type": "runbook", "url": "https://my-runbook"}], "schema-version": "v2.2", "tags": ["my:tag", "service:tag"], "team": "my-team", "tier": "High", "type": "web"}
27+
And body with value {"application": "my-app", "ci-pipeline-fingerprints": ["j88xdEy0J5lc", "eZ7LMljCk8vo"], "contacts": [{"contact": "https://teams.microsoft.com/myteam", "name": "My team channel", "type": "slack"}], "dd-service": "my-service", "description": "My service description", "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": {"service-url": "https://my-org.pagerduty.com/service-directory/PMyService"}}, "languages": ["dotnet", "go", "java", "js", "php", "python", "ruby", "c++"], "lifecycle": "sandbox", "links": [{"name": "Runbook", "provider": "Github", "type": "runbook", "url": "https://my-runbook"}], "schema-version": "v2.2", "tags": ["my:tag", "service:tag"], "team": "my-team", "tier": "High", "type": "web"}
2828
When the request is sent
2929
Then the response status is 409 Conflict
3030

packages/datadog-api-client-v2/models/ServiceDefinitionV2Dot2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export class ServiceDefinitionV2Dot2 {
1919
* Identifier for a group of related services serving a product feature, which the service is a part of.
2020
*/
2121
"application"?: string;
22+
/**
23+
* A set of CI fingerprints.
24+
*/
25+
"ciPipelineFingerprints"?: Array<string>;
2226
/**
2327
* A list of contacts related to the services.
2428
*/
@@ -92,6 +96,10 @@ export class ServiceDefinitionV2Dot2 {
9296
baseName: "application",
9397
type: "string",
9498
},
99+
ciPipelineFingerprints: {
100+
baseName: "ci-pipeline-fingerprints",
101+
type: "Array<string>",
102+
},
95103
contacts: {
96104
baseName: "contacts",
97105
type: "Array<ServiceDefinitionV2Dot2Contact>",

0 commit comments

Comments
 (0)