-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix specification for Azure metric filtering (#2327)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
- Loading branch information
1 parent
27e6800
commit f8fc189
Showing
15 changed files
with
148 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
src/datadog_api_client/v1/model/azure_account_metrics_config.py
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
src/datadog_api_client/v1/model/resource_provider_config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2019-Present Datadog, Inc. | ||
from __future__ import annotations | ||
|
||
from typing import Union | ||
|
||
from datadog_api_client.model_utils import ( | ||
ModelNormal, | ||
cached_property, | ||
unset, | ||
UnsetType, | ||
) | ||
|
||
|
||
class ResourceProviderConfig(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"metrics_enabled": (bool,), | ||
"namespace": (str,), | ||
} | ||
|
||
attribute_map = { | ||
"metrics_enabled": "metrics_enabled", | ||
"namespace": "namespace", | ||
} | ||
|
||
def __init__( | ||
self_, metrics_enabled: Union[bool, UnsetType] = unset, namespace: Union[str, UnsetType] = unset, **kwargs | ||
): | ||
""" | ||
Configuration settings applied to resources from the specified Azure resource provider. | ||
:param metrics_enabled: Collect metrics for resources from this provider. | ||
:type metrics_enabled: bool, optional | ||
:param namespace: The provider namespace to apply this configuration to. | ||
:type namespace: str, optional | ||
""" | ||
if metrics_enabled is not unset: | ||
kwargs["metrics_enabled"] = metrics_enabled | ||
if namespace is not unset: | ||
kwargs["namespace"] = namespace | ||
super().__init__(kwargs) |
Oops, something went wrong.