Skip to content

Commit

Permalink
Regenerate client from commit 48db9d02 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jun 25, 2024
1 parent cf8110a commit a12240e
Show file tree
Hide file tree
Showing 12 changed files with 140 additions and 8 deletions.
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.6.6",
"regenerated": "2024-06-19 10:10:09.090441",
"spec_repo_commit": "4edb50e4"
"regenerated": "2024-06-25 20:11:02.753853",
"spec_repo_commit": "48db9d02"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-06-19 10:10:09.107922",
"spec_repo_commit": "4edb50e4"
"regenerated": "2024-06-25 20:11:02.770932",
"spec_repo_commit": "48db9d02"
}
}
}
25 changes: 25 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,17 @@ components:
type: string
readOnly: true
type: object
CrossOrgUuids:
description: The source organization UUID for cross organization queries. Feature
in Private Beta.
example:
- 6434abde-xxxx-yyyy-zzzz-da7ad0900001
items:
description: The source organization UUID.
example: 6434abde-xxxx-yyyy-zzzz-da7ad0900001
type: string
maxItems: 1
type: array
Dashboard:
description: "A dashboard is Datadog\u2019s tool for visually tracking, analyzing,
and displaying\nkey performance metrics, which enable you to monitor the health
Expand Down Expand Up @@ -2519,6 +2530,8 @@ components:
FormulaAndFunctionApmDependencyStatsQueryDefinition:
description: A formula and functions APM dependency stats query.
properties:
cross_org_uuids:
$ref: '#/components/schemas/CrossOrgUuids'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionApmDependencyStatsDataSource'
env:
Expand Down Expand Up @@ -2606,6 +2619,8 @@ components:
FormulaAndFunctionApmResourceStatsQueryDefinition:
description: APM resource stats query using formulas and functions.
properties:
cross_org_uuids:
$ref: '#/components/schemas/CrossOrgUuids'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionApmResourceStatsDataSource'
env:
Expand Down Expand Up @@ -2671,6 +2686,8 @@ components:
properties:
aggregator:
$ref: '#/components/schemas/WidgetAggregator'
cross_org_uuids:
$ref: '#/components/schemas/CrossOrgUuids'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionCloudCostDataSource'
name:
Expand Down Expand Up @@ -2721,6 +2738,8 @@ components:
properties:
compute:
$ref: '#/components/schemas/FormulaAndFunctionEventQueryDefinitionCompute'
cross_org_uuids:
$ref: '#/components/schemas/CrossOrgUuids'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionEventsDataSource'
group_by:
Expand Down Expand Up @@ -2877,6 +2896,8 @@ components:
properties:
aggregator:
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
cross_org_uuids:
$ref: '#/components/schemas/CrossOrgUuids'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionMetricDataSource'
name:
Expand Down Expand Up @@ -2907,6 +2928,8 @@ components:
properties:
aggregator:
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
cross_org_uuids:
$ref: '#/components/schemas/CrossOrgUuids'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionProcessQueryDataSource'
is_normalized_cpu:
Expand Down Expand Up @@ -3014,6 +3037,8 @@ components:
description: Additional filters applied to the SLO query.
example: host:host_a,env:prod
type: string
cross_org_uuids:
$ref: '#/components/schemas/CrossOrgUuids'
data_source:
$ref: '#/components/schemas/FormulaAndFunctionSLODataSource'
group_mode:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def __init__(self, **kwargs):
:param aggregator: The aggregation methods available for metrics queries.
:type aggregator: FormulaAndFunctionMetricAggregation, optional
:param cross_org_uuids: The source organization UUID for cross organization queries. Feature in Private Beta.
:type cross_org_uuids: [str], optional
:param data_source: Data source for metrics queries.
:type data_source: FormulaAndFunctionMetricDataSource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
Expand All @@ -23,6 +23,12 @@


class FormulaAndFunctionApmDependencyStatsQueryDefinition(ModelNormal):
validations = {
"cross_org_uuids": {
"max_items": 1,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v1.model.formula_and_function_apm_dependency_stats_data_source import (
Expand All @@ -33,6 +39,7 @@ def openapi_types(_):
)

return {
"cross_org_uuids": ([str],),
"data_source": (FormulaAndFunctionApmDependencyStatsDataSource,),
"env": (str,),
"is_upstream": (bool,),
Expand All @@ -46,6 +53,7 @@ def openapi_types(_):
}

attribute_map = {
"cross_org_uuids": "cross_org_uuids",
"data_source": "data_source",
"env": "env",
"is_upstream": "is_upstream",
Expand All @@ -67,6 +75,7 @@ def __init__(
resource_name: str,
service: str,
stat: FormulaAndFunctionApmDependencyStatName,
cross_org_uuids: Union[List[str], UnsetType] = unset,
is_upstream: Union[bool, UnsetType] = unset,
primary_tag_name: Union[str, UnsetType] = unset,
primary_tag_value: Union[str, UnsetType] = unset,
Expand All @@ -75,6 +84,9 @@ def __init__(
"""
A formula and functions APM dependency stats query.
:param cross_org_uuids: The source organization UUID for cross organization queries. Feature in Private Beta.
:type cross_org_uuids: [str], optional
:param data_source: Data source for APM dependency stats queries.
:type data_source: FormulaAndFunctionApmDependencyStatsDataSource
Expand Down Expand Up @@ -105,6 +117,8 @@ def __init__(
:param stat: APM statistic.
:type stat: FormulaAndFunctionApmDependencyStatName
"""
if cross_org_uuids is not unset:
kwargs["cross_org_uuids"] = cross_org_uuids
if is_upstream is not unset:
kwargs["is_upstream"] = is_upstream
if primary_tag_name is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@


class FormulaAndFunctionApmResourceStatsQueryDefinition(ModelNormal):
validations = {
"cross_org_uuids": {
"max_items": 1,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v1.model.formula_and_function_apm_resource_stats_data_source import (
Expand All @@ -33,6 +39,7 @@ def openapi_types(_):
)

return {
"cross_org_uuids": ([str],),
"data_source": (FormulaAndFunctionApmResourceStatsDataSource,),
"env": (str,),
"group_by": ([str],),
Expand All @@ -46,6 +53,7 @@ def openapi_types(_):
}

attribute_map = {
"cross_org_uuids": "cross_org_uuids",
"data_source": "data_source",
"env": "env",
"group_by": "group_by",
Expand All @@ -65,6 +73,7 @@ def __init__(
name: str,
service: str,
stat: FormulaAndFunctionApmResourceStatName,
cross_org_uuids: Union[List[str], UnsetType] = unset,
group_by: Union[List[str], UnsetType] = unset,
operation_name: Union[str, UnsetType] = unset,
primary_tag_name: Union[str, UnsetType] = unset,
Expand All @@ -75,6 +84,9 @@ def __init__(
"""
APM resource stats query using formulas and functions.
:param cross_org_uuids: The source organization UUID for cross organization queries. Feature in Private Beta.
:type cross_org_uuids: [str], optional
:param data_source: Data source for APM resource stats queries.
:type data_source: FormulaAndFunctionApmResourceStatsDataSource
Expand Down Expand Up @@ -105,6 +117,8 @@ def __init__(
:param stat: APM resource stat name.
:type stat: FormulaAndFunctionApmResourceStatName
"""
if cross_org_uuids is not unset:
kwargs["cross_org_uuids"] = cross_org_uuids
if group_by is not unset:
kwargs["group_by"] = group_by
if operation_name is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import List, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
Expand All @@ -21,6 +21,12 @@


class FormulaAndFunctionCloudCostQueryDefinition(ModelNormal):
validations = {
"cross_org_uuids": {
"max_items": 1,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v1.model.widget_aggregator import WidgetAggregator
Expand All @@ -30,13 +36,15 @@ def openapi_types(_):

return {
"aggregator": (WidgetAggregator,),
"cross_org_uuids": ([str],),
"data_source": (FormulaAndFunctionCloudCostDataSource,),
"name": (str,),
"query": (str,),
}

attribute_map = {
"aggregator": "aggregator",
"cross_org_uuids": "cross_org_uuids",
"data_source": "data_source",
"name": "name",
"query": "query",
Expand All @@ -48,6 +56,7 @@ def __init__(
name: str,
query: str,
aggregator: Union[WidgetAggregator, UnsetType] = unset,
cross_org_uuids: Union[List[str], UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -56,6 +65,9 @@ def __init__(
:param aggregator: Aggregator used for the request.
:type aggregator: WidgetAggregator, optional
:param cross_org_uuids: The source organization UUID for cross organization queries. Feature in Private Beta.
:type cross_org_uuids: [str], optional
:param data_source: Data source for Cloud Cost queries.
:type data_source: FormulaAndFunctionCloudCostDataSource
Expand All @@ -67,6 +79,8 @@ def __init__(
"""
if aggregator is not unset:
kwargs["aggregator"] = aggregator
if cross_org_uuids is not unset:
kwargs["cross_org_uuids"] = cross_org_uuids
super().__init__(kwargs)

self_.data_source = data_source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@


class FormulaAndFunctionEventQueryDefinition(ModelNormal):
validations = {
"cross_org_uuids": {
"max_items": 1,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v1.model.formula_and_function_event_query_definition_compute import (
Expand All @@ -44,6 +50,7 @@ def openapi_types(_):

return {
"compute": (FormulaAndFunctionEventQueryDefinitionCompute,),
"cross_org_uuids": ([str],),
"data_source": (FormulaAndFunctionEventsDataSource,),
"group_by": ([FormulaAndFunctionEventQueryGroupBy],),
"indexes": ([str],),
Expand All @@ -54,6 +61,7 @@ def openapi_types(_):

attribute_map = {
"compute": "compute",
"cross_org_uuids": "cross_org_uuids",
"data_source": "data_source",
"group_by": "group_by",
"indexes": "indexes",
Expand All @@ -67,6 +75,7 @@ def __init__(
compute: FormulaAndFunctionEventQueryDefinitionCompute,
data_source: FormulaAndFunctionEventsDataSource,
name: str,
cross_org_uuids: Union[List[str], UnsetType] = unset,
group_by: Union[List[FormulaAndFunctionEventQueryGroupBy], UnsetType] = unset,
indexes: Union[List[str], UnsetType] = unset,
search: Union[FormulaAndFunctionEventQueryDefinitionSearch, UnsetType] = unset,
Expand All @@ -79,6 +88,9 @@ def __init__(
:param compute: Compute options.
:type compute: FormulaAndFunctionEventQueryDefinitionCompute
:param cross_org_uuids: The source organization UUID for cross organization queries. Feature in Private Beta.
:type cross_org_uuids: [str], optional
:param data_source: Data source for event platform-based queries.
:type data_source: FormulaAndFunctionEventsDataSource
Expand All @@ -97,6 +109,8 @@ def __init__(
:param storage: Option for storage location. Feature in Private Beta.
:type storage: str, optional
"""
if cross_org_uuids is not unset:
kwargs["cross_org_uuids"] = cross_org_uuids
if group_by is not unset:
kwargs["group_by"] = group_by
if indexes is not unset:
Expand Down
Loading

0 comments on commit a12240e

Please sign in to comment.