From aff46694cd67b708bef093de607f1aacd644f30d Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 24 Nov 2020 16:52:31 +0000 Subject: [PATCH] Regenerate client from commit 7af099d of spec repo --- .apigentools-info | 8 ++++---- .openapi-generator/FILES | 2 +- docs/v1/README.md | 2 +- docs/v2/README.md | 2 +- src/datadog_api_client/v1/configuration.py | 1 + src/datadog_api_client/v1/model/__init__.py | 5 ----- src/datadog_api_client/v1/openapi.yaml | 3 +++ src/datadog_api_client/v2/model/__init__.py | 5 ----- tests/v1/features/usage_metering.feature | 3 ++- 9 files changed, 13 insertions(+), 18 deletions(-) delete mode 100644 src/datadog_api_client/v1/model/__init__.py delete mode 100644 src/datadog_api_client/v2/model/__init__.py diff --git a/.apigentools-info b/.apigentools-info index ba43e62e3a..a67412d77d 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.3.0", - "regenerated": "2020-11-24 15:02:29.562802", - "spec_repo_commit": "217b6e8" + "regenerated": "2020-11-24 16:52:18.458924", + "spec_repo_commit": "7af099d" }, "v2": { "apigentools_version": "1.3.0", - "regenerated": "2020-11-24 15:02:41.111923", - "spec_repo_commit": "217b6e8" + "regenerated": "2020-11-24 16:52:29.040713", + "spec_repo_commit": "7af099d" } } } \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 5b8d9c0f99..dd1214d0c3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -16,7 +16,6 @@ datadog_api_client/v2/api_client.py datadog_api_client/v2/apis/__init__.py datadog_api_client/v2/configuration.py datadog_api_client/v2/exceptions.py -datadog_api_client/v2/model/__init__.py datadog_api_client/v2/model/api_error_response.py datadog_api_client/v2/model/creator.py datadog_api_client/v2/model/dashboard_list_add_items_request.py @@ -238,6 +237,7 @@ datadog_api_client/v2/model/users_response.py datadog_api_client/v2/model/users_type.py datadog_api_client/v2/model_utils.py datadog_api_client/v2/models/__init__.py +datadog_api_client/v2/models/__init__.py datadog_api_client/v2/rest.py docs/APIErrorResponse.md docs/Creator.md diff --git a/docs/v1/README.md b/docs/v1/README.md index 2dc2973dde..549db37e89 100644 --- a/docs/v1/README.md +++ b/docs/v1/README.md @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 1.0 - Package version: 0.1.0 -- Build package: org.openapitools.codegen.languages.PythonClientExperimentalCodegen +- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.datadoghq.com/support/](https://www.datadoghq.com/support/) ## Requirements. diff --git a/docs/v2/README.md b/docs/v2/README.md index bf8419805f..65b1371bc6 100644 --- a/docs/v2/README.md +++ b/docs/v2/README.md @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 1.0 - Package version: 0.1.0 -- Build package: org.openapitools.codegen.languages.PythonClientExperimentalCodegen +- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.datadoghq.com/support/](https://www.datadoghq.com/support/) ## Requirements. diff --git a/src/datadog_api_client/v1/configuration.py b/src/datadog_api_client/v1/configuration.py index 746711d552..81016ea597 100644 --- a/src/datadog_api_client/v1/configuration.py +++ b/src/datadog_api_client/v1/configuration.py @@ -218,6 +218,7 @@ def __init__(self, host=None, "get_monthly_custom_reports": False, "get_specified_daily_custom_reports": False, "get_specified_monthly_custom_reports": False, + "get_usage_attribution": False, } def __deepcopy__(self, memo): diff --git a/src/datadog_api_client/v1/model/__init__.py b/src/datadog_api_client/v1/model/__init__.py deleted file mode 100644 index cfe32b7849..0000000000 --- a/src/datadog_api_client/v1/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# we can not import model classes here because that would create a circular -# reference which would not work in python2 -# do not import all models into this module because that uses a lot of memory and stack frames -# if you need the ability to import all models from one package, import them with -# from {{packageName}.models import ModelA, ModelB diff --git a/src/datadog_api_client/v1/openapi.yaml b/src/datadog_api_client/v1/openapi.yaml index 18881f8ab3..598399e815 100644 --- a/src/datadog_api_client/v1/openapi.yaml +++ b/src/datadog_api_client/v1/openapi.yaml @@ -15195,6 +15195,9 @@ paths: summary: Get Usage Attribution tags: - Usage Metering + x-unstable: '**Note**: This endpoint is in public beta. + + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v1/usage/aws_lambda: get: description: Get hourly usage for lambda. diff --git a/src/datadog_api_client/v2/model/__init__.py b/src/datadog_api_client/v2/model/__init__.py deleted file mode 100644 index cfe32b7849..0000000000 --- a/src/datadog_api_client/v2/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# we can not import model classes here because that would create a circular -# reference which would not work in python2 -# do not import all models into this module because that uses a lot of memory and stack frames -# if you need the ability to import all models from one package, import them with -# from {{packageName}.models import ModelA, ModelB diff --git a/tests/v1/features/usage_metering.feature b/tests/v1/features/usage_metering.feature index 0f15ba18dd..820f2527dc 100644 --- a/tests/v1/features/usage_metering.feature +++ b/tests/v1/features/usage_metering.feature @@ -182,6 +182,7 @@ Feature: Usage Metering @generated @skip Scenario: Get Usage Attribution returns "OK" response - Given new "GetUsageAttribution" request + Given operation "GetUsageAttribution" enabled + And new "GetUsageAttribution" request When the request is sent Then the response status is 200 OK