Skip to content

Commit c442351

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0197a1bb of spec repo
1 parent 81c8306 commit c442351

File tree

7 files changed

+33
-7
lines changed

7 files changed

+33
-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:37.791165",
8-
"spec_repo_commit": "5745e5bb"
7+
"regenerated": "2024-03-14 19:01:50.225577",
8+
"spec_repo_commit": "0197a1bb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-13 19:22:37.816242",
13-
"spec_repo_commit": "5745e5bb"
12+
"regenerated": "2024-03-14 19:01:50.242804",
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.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
body = ServiceDefinitionV2Dot2(
1818
application="my-app",
19+
ci_pipeline_fingerprints=[
20+
"j88xdEy0J5lc",
21+
"eZ7LMljCk8vo",
22+
],
1923
contacts=[
2024
ServiceDefinitionV2Dot2Contact(
2125
contact="https://teams.microsoft.com/myteam",

src/datadog_api_client/v2/model/service_definition_schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ def __init__(self, **kwargs):
7272
:param tier: Importance of the service.
7373
:type tier: str, optional
7474
75+
:param ci_pipeline_fingerprints: A set of CI fingerprints.
76+
:type ci_pipeline_fingerprints: [str], optional
77+
7578
:param languages: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`.
7679
:type languages: [str], optional
7780

src/datadog_api_client/v2/model/service_definition_v2_dot2.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def openapi_types(_):
3838

3939
return {
4040
"application": (str,),
41+
"ci_pipeline_fingerprints": ([str],),
4142
"contacts": ([ServiceDefinitionV2Dot2Contact],),
4243
"dd_service": (str,),
4344
"description": (str,),
@@ -70,6 +71,7 @@ def openapi_types(_):
7071

7172
attribute_map = {
7273
"application": "application",
74+
"ci_pipeline_fingerprints": "ci-pipeline-fingerprints",
7375
"contacts": "contacts",
7476
"dd_service": "dd-service",
7577
"description": "description",
@@ -90,6 +92,7 @@ def __init__(
9092
dd_service: str,
9193
schema_version: ServiceDefinitionV2Dot2Version,
9294
application: Union[str, UnsetType] = unset,
95+
ci_pipeline_fingerprints: Union[List[str], UnsetType] = unset,
9396
contacts: Union[List[ServiceDefinitionV2Dot2Contact], UnsetType] = unset,
9497
description: Union[str, UnsetType] = unset,
9598
extensions: Union[Dict[str, Any], UnsetType] = unset,
@@ -109,6 +112,9 @@ def __init__(
109112
:param application: Identifier for a group of related services serving a product feature, which the service is a part of.
110113
:type application: str, optional
111114
115+
:param ci_pipeline_fingerprints: A set of CI fingerprints.
116+
:type ci_pipeline_fingerprints: [str], optional
117+
112118
:param contacts: A list of contacts related to the services.
113119
:type contacts: [ServiceDefinitionV2Dot2Contact], optional
114120
@@ -150,6 +156,8 @@ def __init__(
150156
"""
151157
if application is not unset:
152158
kwargs["application"] = application
159+
if ci_pipeline_fingerprints is not unset:
160+
kwargs["ci_pipeline_fingerprints"] = ci_pipeline_fingerprints
153161
if contacts is not unset:
154162
kwargs["contacts"] = contacts
155163
if description is not unset:

src/datadog_api_client/v2/model/service_definitions_create_request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def __init__(self, **kwargs):
1818
:param application: Identifier for a group of related services serving a product feature, which the service is a part of.
1919
:type application: str, optional
2020
21+
:param ci_pipeline_fingerprints: A set of CI fingerprints.
22+
:type ci_pipeline_fingerprints: [str], optional
23+
2124
:param contacts: A list of contacts related to the services.
2225
:type contacts: [ServiceDefinitionV2Dot2Contact], optional
2326

tests/v2/features/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

0 commit comments

Comments
 (0)