Skip to content

Mark Usage Attribution endpoint as public beta #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
2 changes: 1 addition & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/datadog_api_client/v1/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 0 additions & 5 deletions src/datadog_api_client/v1/model/__init__.py

This file was deleted.

3 changes: 3 additions & 0 deletions src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 0 additions & 5 deletions src/datadog_api_client/v2/model/__init__.py

This file was deleted.

3 changes: 2 additions & 1 deletion tests/v1/features/usage_metering.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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