Skip to content

Commit 815c328

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 763f869 of spec repo
1 parent a6b4a7c commit 815c328

File tree

6 files changed

+476
-7
lines changed

6 files changed

+476
-7
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10354,6 +10354,16 @@ components:
1035410354
type: string
1035510355
status:
1035610356
$ref: '#/components/schemas/NotebookStatus'
10357+
template_variables:
10358+
description: List of template variables for this notebook.
10359+
example:
10360+
- available_values: []
10361+
default: '*'
10362+
name: host
10363+
prefix: host
10364+
items:
10365+
$ref: '#/components/schemas/NotebookTemplateVariable'
10366+
type: array
1035710367
time:
1035810368
$ref: '#/components/schemas/NotebookGlobalTime'
1035910369
required:
@@ -10657,6 +10667,39 @@ components:
1065710667
type: string
1065810668
x-enum-varnames:
1065910669
- PUBLISHED
10670+
NotebookTemplateVariable:
10671+
description: Template variable for a notebook.
10672+
properties:
10673+
available_values:
10674+
description: The list of values that the template variable drop-down is
10675+
limited to.
10676+
example:
10677+
- my-host
10678+
- host1
10679+
- host2
10680+
items:
10681+
description: Template variable value.
10682+
type: string
10683+
nullable: true
10684+
type: array
10685+
default:
10686+
description: The default value for the template variable.
10687+
example: '*'
10688+
nullable: true
10689+
type: string
10690+
name:
10691+
description: The name of the variable.
10692+
example: host
10693+
type: string
10694+
prefix:
10695+
description: The tag prefix associated with the variable. Only tags with
10696+
this prefix appear in the variable drop-down.
10697+
example: host
10698+
nullable: true
10699+
type: string
10700+
required:
10701+
- name
10702+
type: object
1066010703
NotebookTimeseriesCellAttributes:
1066110704
description: The attributes of a notebook `timeseries` cell.
1066210705
properties:
@@ -10760,6 +10803,16 @@ components:
1076010803
type: string
1076110804
status:
1076210805
$ref: '#/components/schemas/NotebookStatus'
10806+
template_variables:
10807+
description: List of template variables for this notebook.
10808+
example:
10809+
- available_values: []
10810+
default: '*'
10811+
name: host
10812+
prefix: host
10813+
items:
10814+
$ref: '#/components/schemas/NotebookTemplateVariable'
10815+
type: array
1076310816
time:
1076410817
$ref: '#/components/schemas/NotebookGlobalTime'
1076510818
required:
@@ -10836,6 +10889,16 @@ components:
1083610889
type: string
1083710890
status:
1083810891
$ref: '#/components/schemas/NotebookStatus'
10892+
template_variables:
10893+
description: List of template variables for this notebook.
10894+
example:
10895+
- available_values: []
10896+
default: '*'
10897+
name: host
10898+
prefix: host
10899+
items:
10900+
$ref: '#/components/schemas/NotebookTemplateVariable'
10901+
type: array
1083910902
time:
1084010903
$ref: '#/components/schemas/NotebookGlobalTime'
1084110904
required:

src/main/java/com/datadog/api/client/v1/model/NotebookCreateDataAttributes.java

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
NotebookCreateDataAttributes.JSON_PROPERTY_METADATA,
2626
NotebookCreateDataAttributes.JSON_PROPERTY_NAME,
2727
NotebookCreateDataAttributes.JSON_PROPERTY_STATUS,
28+
NotebookCreateDataAttributes.JSON_PROPERTY_TEMPLATE_VARIABLES,
2829
NotebookCreateDataAttributes.JSON_PROPERTY_TIME
2930
})
3031
@jakarta.annotation.Generated(
@@ -43,6 +44,9 @@ public class NotebookCreateDataAttributes {
4344
public static final String JSON_PROPERTY_STATUS = "status";
4445
private NotebookStatus status = NotebookStatus.PUBLISHED;
4546

47+
public static final String JSON_PROPERTY_TEMPLATE_VARIABLES = "template_variables";
48+
private List<NotebookTemplateVariable> templateVariables = null;
49+
4650
public static final String JSON_PROPERTY_TIME = "time";
4751
private NotebookGlobalTime time;
4852

@@ -156,6 +160,41 @@ public void setStatus(NotebookStatus status) {
156160
this.status = status;
157161
}
158162

163+
public NotebookCreateDataAttributes templateVariables(
164+
List<NotebookTemplateVariable> templateVariables) {
165+
this.templateVariables = templateVariables;
166+
for (NotebookTemplateVariable item : templateVariables) {
167+
this.unparsed |= item.unparsed;
168+
}
169+
return this;
170+
}
171+
172+
public NotebookCreateDataAttributes addTemplateVariablesItem(
173+
NotebookTemplateVariable templateVariablesItem) {
174+
if (this.templateVariables == null) {
175+
this.templateVariables = new ArrayList<>();
176+
}
177+
this.templateVariables.add(templateVariablesItem);
178+
this.unparsed |= templateVariablesItem.unparsed;
179+
return this;
180+
}
181+
182+
/**
183+
* List of template variables for this notebook.
184+
*
185+
* @return templateVariables
186+
*/
187+
@jakarta.annotation.Nullable
188+
@JsonProperty(JSON_PROPERTY_TEMPLATE_VARIABLES)
189+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
190+
public List<NotebookTemplateVariable> getTemplateVariables() {
191+
return templateVariables;
192+
}
193+
194+
public void setTemplateVariables(List<NotebookTemplateVariable> templateVariables) {
195+
this.templateVariables = templateVariables;
196+
}
197+
159198
public NotebookCreateDataAttributes time(NotebookGlobalTime time) {
160199
this.time = time;
161200
this.unparsed |= time.unparsed;
@@ -237,14 +276,16 @@ public boolean equals(Object o) {
237276
&& Objects.equals(this.metadata, notebookCreateDataAttributes.metadata)
238277
&& Objects.equals(this.name, notebookCreateDataAttributes.name)
239278
&& Objects.equals(this.status, notebookCreateDataAttributes.status)
279+
&& Objects.equals(this.templateVariables, notebookCreateDataAttributes.templateVariables)
240280
&& Objects.equals(this.time, notebookCreateDataAttributes.time)
241281
&& Objects.equals(
242282
this.additionalProperties, notebookCreateDataAttributes.additionalProperties);
243283
}
244284

245285
@Override
246286
public int hashCode() {
247-
return Objects.hash(cells, metadata, name, status, time, additionalProperties);
287+
return Objects.hash(
288+
cells, metadata, name, status, templateVariables, time, additionalProperties);
248289
}
249290

250291
@Override
@@ -255,6 +296,7 @@ public String toString() {
255296
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
256297
sb.append(" name: ").append(toIndentedString(name)).append("\n");
257298
sb.append(" status: ").append(toIndentedString(status)).append("\n");
299+
sb.append(" templateVariables: ").append(toIndentedString(templateVariables)).append("\n");
258300
sb.append(" time: ").append(toIndentedString(time)).append("\n");
259301
sb.append(" additionalProperties: ")
260302
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)