Skip to content

Commit 7e94055

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Add missing type field for OnDemandConcurrencyCap response (#1247)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e77f378 commit 7e94055

File tree

6 files changed

+40
-4
lines changed

6 files changed

+40
-4
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:17:59.770492",
8-
"spec_repo_commit": "835cb6df"
7+
"regenerated": "2023-07-26 14:58:34.052664",
8+
"spec_repo_commit": "3d6b3d5a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-26 14:17:59.784271",
13-
"spec_repo_commit": "835cb6df"
12+
"regenerated": "2023-07-26 14:58:34.074888",
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:

packages/datadog-api-client-v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ export { NullableRelationshipToUserData } from "./models/NullableRelationshipToU
10021002
export { OnDemandConcurrencyCap } from "./models/OnDemandConcurrencyCap";
10031003
export { OnDemandConcurrencyCapAttributes } from "./models/OnDemandConcurrencyCapAttributes";
10041004
export { OnDemandConcurrencyCapResponse } from "./models/OnDemandConcurrencyCapResponse";
1005+
export { OnDemandConcurrencyCapType } from "./models/OnDemandConcurrencyCapType";
10051006
export { OpsgenieServiceCreateAttributes } from "./models/OpsgenieServiceCreateAttributes";
10061007
export { OpsgenieServiceCreateData } from "./models/OpsgenieServiceCreateData";
10071008
export { OpsgenieServiceCreateRequest } from "./models/OpsgenieServiceCreateRequest";

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ const enumsMap: { [key: string]: any[] } = {
11041104
MonitorConfigPolicyResourceType: ["monitor-config-policy"],
11051105
MonitorConfigPolicyType: ["tag"],
11061106
MonitorDowntimeMatchResourceType: ["downtime_match"],
1107+
OnDemandConcurrencyCapType: ["on_demand_concurrency_cap"],
11071108
OpsgenieServiceRegionType: ["us", "eu", "custom"],
11081109
OpsgenieServiceType: ["opsgenie-service"],
11091110
OrganizationsType: ["orgs"],

packages/datadog-api-client-v2/models/OnDemandConcurrencyCap.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { OnDemandConcurrencyCapAttributes } from "./OnDemandConcurrencyCapAttributes";
7+
import { OnDemandConcurrencyCapType } from "./OnDemandConcurrencyCapType";
78

89
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
910

@@ -15,6 +16,10 @@ export class OnDemandConcurrencyCap {
1516
* On-demand concurrency cap attributes.
1617
*/
1718
"attributes"?: OnDemandConcurrencyCapAttributes;
19+
/**
20+
* On-demand concurrency cap type.
21+
*/
22+
"type"?: OnDemandConcurrencyCapType;
1823

1924
/**
2025
* @ignore
@@ -29,6 +34,10 @@ export class OnDemandConcurrencyCap {
2934
baseName: "attributes",
3035
type: "OnDemandConcurrencyCapAttributes",
3136
},
37+
type: {
38+
baseName: "type",
39+
type: "OnDemandConcurrencyCapType",
40+
},
3241
};
3342

3443
/**
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { UnparsedObject } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* On-demand concurrency cap type.
11+
*/
12+
13+
export type OnDemandConcurrencyCapType =
14+
| typeof ON_DEMAND_CONCURRENCY_CAP
15+
| UnparsedObject;
16+
export const ON_DEMAND_CONCURRENCY_CAP = "on_demand_concurrency_cap";

0 commit comments

Comments
 (0)