Skip to content

Commit

Permalink
Powerpack add support for prefix and available values (#1819)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Sep 18, 2024
1 parent d2a8d39 commit 77e7f37
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 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-09-16 14:02:55.755592",
"spec_repo_commit": "966987f5"
"regenerated": "2024-09-18 14:45:11.842654",
"spec_repo_commit": "bae57ce1"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-16 14:02:55.775858",
"spec_repo_commit": "966987f5"
"regenerated": "2024-09-18 14:45:11.862890",
"spec_repo_commit": "bae57ce1"
}
}
}
18 changes: 18 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16297,6 +16297,18 @@ components:
PowerpackTemplateVariable:
description: Powerpack template variables.
properties:
available_values:
description: The list of values that the template variable drop-down is
limited to.
example:
- my-host
- host1
- host2
items:
description: Template variable value.
type: string
nullable: true
type: array
defaults:
description: One or many template variable default values within the saved
view, which are unioned together using `OR` if more than one is specified.
Expand All @@ -16309,6 +16321,12 @@ components:
description: The name of the variable.
example: datacenter
type: string
prefix:
description: The tag prefix associated with the variable. Only tags with
this prefix appear in the variable drop-down.
example: host
nullable: true
type: string
required:
- name
type: object
Expand Down
16 changes: 16 additions & 0 deletions packages/datadog-api-client-v2/models/PowerpackTemplateVariable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* Powerpack template variables.
*/
export class PowerpackTemplateVariable {
/**
* The list of values that the template variable drop-down is limited to.
*/
"availableValues"?: Array<string>;
/**
* One or many template variable default values within the saved view, which are unioned together using `OR` if more than one is specified.
*/
Expand All @@ -18,6 +22,10 @@ export class PowerpackTemplateVariable {
* The name of the variable.
*/
"name": string;
/**
* The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
*/
"prefix"?: string;

/**
* A container for additional, undeclared properties.
Expand All @@ -35,6 +43,10 @@ export class PowerpackTemplateVariable {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
availableValues: {
baseName: "available_values",
type: "Array<string>",
},
defaults: {
baseName: "defaults",
type: "Array<string>",
Expand All @@ -44,6 +56,10 @@ export class PowerpackTemplateVariable {
type: "string",
required: true,
},
prefix: {
baseName: "prefix",
type: "string",
},
additionalProperties: {
baseName: "additionalProperties",
type: "any",
Expand Down

0 comments on commit 77e7f37

Please sign in to comment.