diff --git a/.apigentools-info b/.apigentools-info index 799298bf41..91d9b07fee 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-11-06 16:31:16.204614", - "spec_repo_commit": "62fc6756" + "regenerated": "2023-11-07 09:02:06.404689", + "spec_repo_commit": "c7428dad" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-11-06 16:31:16.221809", - "spec_repo_commit": "62fc6756" + "regenerated": "2023-11-07 09:02:06.418647", + "spec_repo_commit": "c7428dad" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f6a46672e7..8bdf09099d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -16378,7 +16378,7 @@ components: type: object integrations: $ref: '#/components/schemas/ServiceDefinitionV2Dot2Integrations' - langauges: + languages: description: 'The service''s programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`.' diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.py b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.py index f9216eaa78..40e67dddbd 100644 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.py +++ b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.py @@ -35,7 +35,7 @@ service_url="https://my-org.pagerduty.com/service-directory/PMyService", ), ), - langauges=[ + languages=[ "dotnet", "go", "java", diff --git a/src/datadog_api_client/v2/model/service_definition_schema.py b/src/datadog_api_client/v2/model/service_definition_schema.py index bc02432f79..b478508202 100644 --- a/src/datadog_api_client/v2/model/service_definition_schema.py +++ b/src/datadog_api_client/v2/model/service_definition_schema.py @@ -72,8 +72,8 @@ def __init__(self, **kwargs): :param tier: Importance of the service. :type tier: str, optional - :param langauges: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`. - :type langauges: [str], optional + :param languages: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`. + :type languages: [str], optional :param type: The type of service. :type type: ServiceDefinitionV2Dot2Type, optional diff --git a/src/datadog_api_client/v2/model/service_definition_v2_dot2.py b/src/datadog_api_client/v2/model/service_definition_v2_dot2.py index 4e2eaa91e1..d86e667268 100644 --- a/src/datadog_api_client/v2/model/service_definition_v2_dot2.py +++ b/src/datadog_api_client/v2/model/service_definition_v2_dot2.py @@ -58,7 +58,7 @@ def openapi_types(_): }, ), "integrations": (ServiceDefinitionV2Dot2Integrations,), - "langauges": ([str],), + "languages": ([str],), "lifecycle": (str,), "links": ([ServiceDefinitionV2Dot2Link],), "schema_version": (ServiceDefinitionV2Dot2Version,), @@ -75,7 +75,7 @@ def openapi_types(_): "description": "description", "extensions": "extensions", "integrations": "integrations", - "langauges": "langauges", + "languages": "languages", "lifecycle": "lifecycle", "links": "links", "schema_version": "schema-version", @@ -94,7 +94,7 @@ def __init__( description: Union[str, UnsetType] = unset, extensions: Union[Dict[str, Any], UnsetType] = unset, integrations: Union[ServiceDefinitionV2Dot2Integrations, UnsetType] = unset, - langauges: Union[List[str], UnsetType] = unset, + languages: Union[List[str], UnsetType] = unset, lifecycle: Union[str, UnsetType] = unset, links: Union[List[ServiceDefinitionV2Dot2Link], UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, @@ -124,8 +124,8 @@ def __init__( :param integrations: Third party integrations that Datadog supports. :type integrations: ServiceDefinitionV2Dot2Integrations, optional - :param langauges: The service's programming language. Datadog recognizes the following languages: ``dotnet`` , ``go`` , ``java`` , ``js`` , ``php`` , ``python`` , ``ruby`` , and ``c++``. - :type langauges: [str], optional + :param languages: The service's programming language. Datadog recognizes the following languages: ``dotnet`` , ``go`` , ``java`` , ``js`` , ``php`` , ``python`` , ``ruby`` , and ``c++``. + :type languages: [str], optional :param lifecycle: The current life cycle phase of the service. :type lifecycle: str, optional @@ -158,8 +158,8 @@ def __init__( kwargs["extensions"] = extensions if integrations is not unset: kwargs["integrations"] = integrations - if langauges is not unset: - kwargs["langauges"] = langauges + if languages is not unset: + kwargs["languages"] = languages if lifecycle is not unset: kwargs["lifecycle"] = lifecycle if links is not unset: diff --git a/src/datadog_api_client/v2/model/service_definitions_create_request.py b/src/datadog_api_client/v2/model/service_definitions_create_request.py index 4c4a9e980c..e35b1bd519 100644 --- a/src/datadog_api_client/v2/model/service_definitions_create_request.py +++ b/src/datadog_api_client/v2/model/service_definitions_create_request.py @@ -33,8 +33,8 @@ def __init__(self, **kwargs): :param integrations: Third party integrations that Datadog supports. :type integrations: ServiceDefinitionV2Dot2Integrations, optional - :param langauges: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`. - :type langauges: [str], optional + :param languages: The service's programming language. Datadog recognizes the following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`, and `c++`. + :type languages: [str], optional :param lifecycle: The current life cycle phase of the service. :type lifecycle: str, optional diff --git a/tests/v2/features/service_definition.feature b/tests/v2/features/service_definition.feature index b67846ed55..b7de3667d7 100644 --- a/tests/v2/features/service_definition.feature +++ b/tests/v2/features/service_definition.feature @@ -10,21 +10,21 @@ Feature: Service Definition @generated @skip @team:DataDog/service-catalog Scenario: Create or update service definition returns "Bad Request" response Given new "CreateOrUpdateServiceDefinitions" request - 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"} + 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"} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/service-catalog Scenario: Create or update service definition returns "CREATED" response Given new "CreateOrUpdateServiceDefinitions" request - 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"} + 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"} When the request is sent Then the response status is 200 CREATED @generated @skip @team:DataDog/service-catalog Scenario: Create or update service definition returns "Conflict" response Given new "CreateOrUpdateServiceDefinitions" request - 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"} + 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"} When the request is sent Then the response status is 409 Conflict