Skip to content

Commit 6ea5126

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update CI Visibility types of BucketResponse schema (#1278)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 060d37f commit 6ea5126

File tree

4 files changed

+56
-14
lines changed

4 files changed

+56
-14
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2022-12-20 16:44:55.552816",
8-
"spec_repo_commit": "ec3c91a9"
7+
"regenerated": "2022-12-21 16:21:33.351937",
8+
"spec_repo_commit": "2c16ca69"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-12-20 16:44:55.565349",
13-
"spec_repo_commit": "ec3c91a9"
12+
"regenerated": "2022-12-21 16:21:33.365728",
13+
"spec_repo_commit": "2c16ca69"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,11 @@ components:
14341434
by:
14351435
additionalProperties:
14361436
description: The values for each group-by.
1437-
type: string
1437+
oneOf:
1438+
- type: string
1439+
- format: double
1440+
type: number
1441+
- type: boolean
14381442
description: The key-value pairs for each group-by.
14391443
example:
14401444
'@ci.provider.name': gitlab
@@ -1687,7 +1691,11 @@ components:
16871691
by:
16881692
additionalProperties:
16891693
description: The values for each group-by.
1690-
type: string
1694+
oneOf:
1695+
- type: string
1696+
- format: double
1697+
type: number
1698+
- type: boolean
16911699
description: The key-value pairs for each group-by.
16921700
example:
16931701
'@test.service': web-ui-tests

src/datadog_api_client/v2/model/ci_app_pipelines_bucket_response.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Dict, Union, TYPE_CHECKING
6+
from typing import Any, Dict, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
13+
none_type,
1114
unset,
1215
UnsetType,
1316
)
@@ -23,7 +26,21 @@ def openapi_types(_):
2326
from datadog_api_client.v2.model.ci_app_computes import CIAppComputes
2427

2528
return {
26-
"by": ({str: (str,)},),
29+
"by": (
30+
{
31+
str: (
32+
bool,
33+
date,
34+
datetime,
35+
dict,
36+
float,
37+
int,
38+
list,
39+
str,
40+
none_type,
41+
)
42+
},
43+
),
2744
"computes": (CIAppComputes,),
2845
}
2946

@@ -33,13 +50,13 @@ def openapi_types(_):
3350
}
3451

3552
def __init__(
36-
self_, by: Union[Dict[str, str], UnsetType] = unset, computes: Union[CIAppComputes, UnsetType] = unset, **kwargs
53+
self_, by: Union[Dict[str, Any], UnsetType] = unset, computes: Union[CIAppComputes, UnsetType] = unset, **kwargs
3754
):
3855
"""
3956
Bucket values.
4057
4158
:param by: The key-value pairs for each group-by.
42-
:type by: {str: (str,)}, optional
59+
:type by: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional
4360
4461
:param computes: A map of the metric name to value for regular compute, or a list of values for a timeseries.
4562
:type computes: CIAppComputes, optional

src/datadog_api_client/v2/model/ci_app_tests_bucket_response.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Dict, Union, TYPE_CHECKING
6+
from typing import Any, Dict, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
13+
none_type,
1114
unset,
1215
UnsetType,
1316
)
@@ -23,7 +26,21 @@ def openapi_types(_):
2326
from datadog_api_client.v2.model.ci_app_computes import CIAppComputes
2427

2528
return {
26-
"by": ({str: (str,)},),
29+
"by": (
30+
{
31+
str: (
32+
bool,
33+
date,
34+
datetime,
35+
dict,
36+
float,
37+
int,
38+
list,
39+
str,
40+
none_type,
41+
)
42+
},
43+
),
2744
"computes": (CIAppComputes,),
2845
}
2946

@@ -33,13 +50,13 @@ def openapi_types(_):
3350
}
3451

3552
def __init__(
36-
self_, by: Union[Dict[str, str], UnsetType] = unset, computes: Union[CIAppComputes, UnsetType] = unset, **kwargs
53+
self_, by: Union[Dict[str, Any], UnsetType] = unset, computes: Union[CIAppComputes, UnsetType] = unset, **kwargs
3754
):
3855
"""
3956
Bucket values.
4057
4158
:param by: The key-value pairs for each group-by.
42-
:type by: {str: (str,)}, optional
59+
:type by: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional
4360
4461
:param computes: A map of the metric name to value for regular compute, or a list of values for a timeseries.
4562
:type computes: CIAppComputes, optional

0 commit comments

Comments
 (0)