Skip to content

Commit 77e7f37

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Powerpack add support for prefix and available values (#1819)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d2a8d39 commit 77e7f37

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-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.6",
7-
"regenerated": "2024-09-16 14:02:55.755592",
8-
"spec_repo_commit": "966987f5"
7+
"regenerated": "2024-09-18 14:45:11.842654",
8+
"spec_repo_commit": "bae57ce1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-16 14:02:55.775858",
13-
"spec_repo_commit": "966987f5"
12+
"regenerated": "2024-09-18 14:45:11.862890",
13+
"spec_repo_commit": "bae57ce1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16297,6 +16297,18 @@ components:
1629716297
PowerpackTemplateVariable:
1629816298
description: Powerpack template variables.
1629916299
properties:
16300+
available_values:
16301+
description: The list of values that the template variable drop-down is
16302+
limited to.
16303+
example:
16304+
- my-host
16305+
- host1
16306+
- host2
16307+
items:
16308+
description: Template variable value.
16309+
type: string
16310+
nullable: true
16311+
type: array
1630016312
defaults:
1630116313
description: One or many template variable default values within the saved
1630216314
view, which are unioned together using `OR` if more than one is specified.
@@ -16309,6 +16321,12 @@ components:
1630916321
description: The name of the variable.
1631016322
example: datacenter
1631116323
type: string
16324+
prefix:
16325+
description: The tag prefix associated with the variable. Only tags with
16326+
this prefix appear in the variable drop-down.
16327+
example: host
16328+
nullable: true
16329+
type: string
1631216330
required:
1631316331
- name
1631416332
type: object

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Powerpack template variables.
1111
*/
1212
export class PowerpackTemplateVariable {
13+
/**
14+
* The list of values that the template variable drop-down is limited to.
15+
*/
16+
"availableValues"?: Array<string>;
1317
/**
1418
* One or many template variable default values within the saved view, which are unioned together using `OR` if more than one is specified.
1519
*/
@@ -18,6 +22,10 @@ export class PowerpackTemplateVariable {
1822
* The name of the variable.
1923
*/
2024
"name": string;
25+
/**
26+
* The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
27+
*/
28+
"prefix"?: string;
2129

2230
/**
2331
* A container for additional, undeclared properties.
@@ -35,6 +43,10 @@ export class PowerpackTemplateVariable {
3543
* @ignore
3644
*/
3745
static readonly attributeTypeMap: AttributeTypeMap = {
46+
availableValues: {
47+
baseName: "available_values",
48+
type: "Array<string>",
49+
},
3850
defaults: {
3951
baseName: "defaults",
4052
type: "Array<string>",
@@ -44,6 +56,10 @@ export class PowerpackTemplateVariable {
4456
type: "string",
4557
required: true,
4658
},
59+
prefix: {
60+
baseName: "prefix",
61+
type: "string",
62+
},
4763
additionalProperties: {
4864
baseName: "additionalProperties",
4965
type: "any",

0 commit comments

Comments
 (0)