Skip to content

Commit 218617d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3d6b3d5a of spec repo
1 parent 0c8ceab commit 218617d

File tree

6 files changed

+72
-5
lines changed

6 files changed

+72
-5
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.5",
7-
"regenerated": "2023-07-26 14:18:05.895117",
8-
"spec_repo_commit": "835cb6df"
7+
"regenerated": "2023-07-26 14:58:33.704719",
8+
"spec_repo_commit": "3d6b3d5a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-26 14:18:05.974104",
13-
"spec_repo_commit": "835cb6df"
12+
"regenerated": "2023-07-26 14:58:33.720898",
13+
"spec_repo_commit": "3d6b3d5a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10110,6 +10110,8 @@ components:
1011010110
properties:
1011110111
attributes:
1011210112
$ref: '#/components/schemas/OnDemandConcurrencyCapAttributes'
10113+
type:
10114+
$ref: '#/components/schemas/OnDemandConcurrencyCapType'
1011310115
type: object
1011410116
OnDemandConcurrencyCapAttributes:
1011510117
description: On-demand concurrency cap attributes.
@@ -10125,6 +10127,13 @@ components:
1012510127
data:
1012610128
$ref: '#/components/schemas/OnDemandConcurrencyCap'
1012710129
type: object
10130+
OnDemandConcurrencyCapType:
10131+
description: On-demand concurrency cap type.
10132+
enum:
10133+
- on_demand_concurrency_cap
10134+
type: string
10135+
x-enum-varnames:
10136+
- ON_DEMAND_CONCURRENCY_CAP
1012810137
OpsgenieServiceCreateAttributes:
1012910138
description: The Opsgenie service attributes for a create request.
1013010139
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4397,6 +4397,13 @@ on\_demand\_concurrency\_cap\_response
43974397
:members:
43984398
:show-inheritance:
43994399

4400+
on\_demand\_concurrency\_cap\_type
4401+
----------------------------------
4402+
4403+
.. automodule:: datadog_api_client.v2.model.on_demand_concurrency_cap_type
4404+
:members:
4405+
:show-inheritance:
4406+
44004407
opsgenie\_service\_create\_attributes
44014408
-------------------------------------
44024409

src/datadog_api_client/v2/model/on_demand_concurrency_cap.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,42 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.on_demand_concurrency_cap_attributes import OnDemandConcurrencyCapAttributes
18+
from datadog_api_client.v2.model.on_demand_concurrency_cap_type import OnDemandConcurrencyCapType
1819

1920

2021
class OnDemandConcurrencyCap(ModelNormal):
2122
@cached_property
2223
def openapi_types(_):
2324
from datadog_api_client.v2.model.on_demand_concurrency_cap_attributes import OnDemandConcurrencyCapAttributes
25+
from datadog_api_client.v2.model.on_demand_concurrency_cap_type import OnDemandConcurrencyCapType
2426

2527
return {
2628
"attributes": (OnDemandConcurrencyCapAttributes,),
29+
"type": (OnDemandConcurrencyCapType,),
2730
}
2831

2932
attribute_map = {
3033
"attributes": "attributes",
34+
"type": "type",
3135
}
3236

33-
def __init__(self_, attributes: Union[OnDemandConcurrencyCapAttributes, UnsetType] = unset, **kwargs):
37+
def __init__(
38+
self_,
39+
attributes: Union[OnDemandConcurrencyCapAttributes, UnsetType] = unset,
40+
type: Union[OnDemandConcurrencyCapType, UnsetType] = unset,
41+
**kwargs,
42+
):
3443
"""
3544
On-demand concurrency cap.
3645
3746
:param attributes: On-demand concurrency cap attributes.
3847
:type attributes: OnDemandConcurrencyCapAttributes, optional
48+
49+
:param type: On-demand concurrency cap type.
50+
:type type: OnDemandConcurrencyCapType, optional
3951
"""
4052
if attributes is not unset:
4153
kwargs["attributes"] = attributes
54+
if type is not unset:
55+
kwargs["type"] = type
4256
super().__init__(kwargs)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class OnDemandConcurrencyCapType(ModelSimple):
16+
"""
17+
On-demand concurrency cap type.
18+
19+
:param value: If omitted defaults to "on_demand_concurrency_cap". Must be one of ["on_demand_concurrency_cap"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"on_demand_concurrency_cap",
25+
}
26+
ON_DEMAND_CONCURRENCY_CAP: ClassVar["OnDemandConcurrencyCapType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
OnDemandConcurrencyCapType.ON_DEMAND_CONCURRENCY_CAP = OnDemandConcurrencyCapType("on_demand_concurrency_cap")

src/datadog_api_client/v2/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@
736736
from datadog_api_client.v2.model.on_demand_concurrency_cap import OnDemandConcurrencyCap
737737
from datadog_api_client.v2.model.on_demand_concurrency_cap_attributes import OnDemandConcurrencyCapAttributes
738738
from datadog_api_client.v2.model.on_demand_concurrency_cap_response import OnDemandConcurrencyCapResponse
739+
from datadog_api_client.v2.model.on_demand_concurrency_cap_type import OnDemandConcurrencyCapType
739740
from datadog_api_client.v2.model.opsgenie_service_create_attributes import OpsgenieServiceCreateAttributes
740741
from datadog_api_client.v2.model.opsgenie_service_create_data import OpsgenieServiceCreateData
741742
from datadog_api_client.v2.model.opsgenie_service_create_request import OpsgenieServiceCreateRequest
@@ -1971,6 +1972,7 @@
19711972
"OnDemandConcurrencyCap",
19721973
"OnDemandConcurrencyCapAttributes",
19731974
"OnDemandConcurrencyCapResponse",
1975+
"OnDemandConcurrencyCapType",
19741976
"OpsgenieServiceCreateAttributes",
19751977
"OpsgenieServiceCreateData",
19761978
"OpsgenieServiceCreateRequest",

0 commit comments

Comments
 (0)