Skip to content

Commit 8c58fff

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spectherve
authored
Fix typo in service definition field (#1754)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: Thomas Hervé <[email protected]>
1 parent 9b91d1a commit 8c58fff

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
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-11-06 16:31:16.204614",
8-
"spec_repo_commit": "62fc6756"
7+
"regenerated": "2023-11-07 09:02:06.404689",
8+
"spec_repo_commit": "c7428dad"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-06 16:31:16.221809",
13-
"spec_repo_commit": "62fc6756"
12+
"regenerated": "2023-11-07 09:02:06.418647",
13+
"spec_repo_commit": "c7428dad"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16378,7 +16378,7 @@ components:
1637816378
type: object
1637916379
integrations:
1638016380
$ref: '#/components/schemas/ServiceDefinitionV2Dot2Integrations'
16381-
langauges:
16381+
languages:
1638216382
description: 'The service''s programming language. Datadog recognizes the
1638316383
following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`,
1638416384
and `c++`.'

examples/v2/service-definition/CreateOrUpdateServiceDefinitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
service_url="https://my-org.pagerduty.com/service-directory/PMyService",
3636
),
3737
),
38-
langauges=[
38+
languages=[
3939
"dotnet",
4040
"go",
4141
"java",

src/datadog_api_client/v2/model/service_definition_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def __init__(self, **kwargs):
7272
:param tier: Importance of the service.
7373
:type tier: str, optional
7474
75-
:param langauges: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`.
76-
:type langauges: [str], optional
75+
:param languages: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`.
76+
:type languages: [str], optional
7777
7878
:param type: The type of service.
7979
:type type: ServiceDefinitionV2Dot2Type, optional

src/datadog_api_client/v2/model/service_definition_v2_dot2.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def openapi_types(_):
5858
},
5959
),
6060
"integrations": (ServiceDefinitionV2Dot2Integrations,),
61-
"langauges": ([str],),
61+
"languages": ([str],),
6262
"lifecycle": (str,),
6363
"links": ([ServiceDefinitionV2Dot2Link],),
6464
"schema_version": (ServiceDefinitionV2Dot2Version,),
@@ -75,7 +75,7 @@ def openapi_types(_):
7575
"description": "description",
7676
"extensions": "extensions",
7777
"integrations": "integrations",
78-
"langauges": "langauges",
78+
"languages": "languages",
7979
"lifecycle": "lifecycle",
8080
"links": "links",
8181
"schema_version": "schema-version",
@@ -94,7 +94,7 @@ def __init__(
9494
description: Union[str, UnsetType] = unset,
9595
extensions: Union[Dict[str, Any], UnsetType] = unset,
9696
integrations: Union[ServiceDefinitionV2Dot2Integrations, UnsetType] = unset,
97-
langauges: Union[List[str], UnsetType] = unset,
97+
languages: Union[List[str], UnsetType] = unset,
9898
lifecycle: Union[str, UnsetType] = unset,
9999
links: Union[List[ServiceDefinitionV2Dot2Link], UnsetType] = unset,
100100
tags: Union[List[str], UnsetType] = unset,
@@ -124,8 +124,8 @@ def __init__(
124124
:param integrations: Third party integrations that Datadog supports.
125125
:type integrations: ServiceDefinitionV2Dot2Integrations, optional
126126
127-
:param langauges: The service's programming language. Datadog recognizes the following languages: ``dotnet`` , ``go`` , ``java`` , ``js`` , ``php`` , ``python`` , ``ruby`` , and ``c++``.
128-
:type langauges: [str], optional
127+
:param languages: The service's programming language. Datadog recognizes the following languages: ``dotnet`` , ``go`` , ``java`` , ``js`` , ``php`` , ``python`` , ``ruby`` , and ``c++``.
128+
:type languages: [str], optional
129129
130130
:param lifecycle: The current life cycle phase of the service.
131131
:type lifecycle: str, optional
@@ -158,8 +158,8 @@ def __init__(
158158
kwargs["extensions"] = extensions
159159
if integrations is not unset:
160160
kwargs["integrations"] = integrations
161-
if langauges is not unset:
162-
kwargs["langauges"] = langauges
161+
if languages is not unset:
162+
kwargs["languages"] = languages
163163
if lifecycle is not unset:
164164
kwargs["lifecycle"] = lifecycle
165165
if links is not unset:

src/datadog_api_client/v2/model/service_definitions_create_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def __init__(self, **kwargs):
3333
:param integrations: Third party integrations that Datadog supports.
3434
:type integrations: ServiceDefinitionV2Dot2Integrations, optional
3535
36-
:param langauges: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`.
37-
:type langauges: [str], optional
36+
:param languages: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`.
37+
:type languages: [str], optional
3838
3939
:param lifecycle: The current life cycle phase of the service.
4040
:type lifecycle: str, optional

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"}}, "langauges": ["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", "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"}}, "langauges": ["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", "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"}}, "langauges": ["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", "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)