Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10354,6 +10354,16 @@ components:
type: string
status:
$ref: '#/components/schemas/NotebookStatus'
template_variables:
description: List of template variables for this notebook.
example:
- available_values: []
default: '*'
name: host
prefix: host
items:
$ref: '#/components/schemas/NotebookTemplateVariable'
type: array
time:
$ref: '#/components/schemas/NotebookGlobalTime'
required:
Expand Down Expand Up @@ -10657,6 +10667,39 @@ components:
type: string
x-enum-varnames:
- PUBLISHED
NotebookTemplateVariable:
description: Template variable for a notebook.
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
default:
description: The default value for the template variable.
example: '*'
nullable: true
type: string
name:
description: The name of the variable.
example: host
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
NotebookTimeseriesCellAttributes:
description: The attributes of a notebook `timeseries` cell.
properties:
Expand Down Expand Up @@ -10760,6 +10803,16 @@ components:
type: string
status:
$ref: '#/components/schemas/NotebookStatus'
template_variables:
description: List of template variables for this notebook.
example:
- available_values: []
default: '*'
name: host
prefix: host
items:
$ref: '#/components/schemas/NotebookTemplateVariable'
type: array
time:
$ref: '#/components/schemas/NotebookGlobalTime'
required:
Expand Down Expand Up @@ -10836,6 +10889,16 @@ components:
type: string
status:
$ref: '#/components/schemas/NotebookStatus'
template_variables:
description: List of template variables for this notebook.
example:
- available_values: []
default: '*'
name: host
prefix: host
items:
$ref: '#/components/schemas/NotebookTemplateVariable'
type: array
time:
$ref: '#/components/schemas/NotebookGlobalTime'
required:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
NotebookCreateDataAttributes.JSON_PROPERTY_METADATA,
NotebookCreateDataAttributes.JSON_PROPERTY_NAME,
NotebookCreateDataAttributes.JSON_PROPERTY_STATUS,
NotebookCreateDataAttributes.JSON_PROPERTY_TEMPLATE_VARIABLES,
NotebookCreateDataAttributes.JSON_PROPERTY_TIME
})
@jakarta.annotation.Generated(
Expand All @@ -43,6 +44,9 @@ public class NotebookCreateDataAttributes {
public static final String JSON_PROPERTY_STATUS = "status";
private NotebookStatus status = NotebookStatus.PUBLISHED;

public static final String JSON_PROPERTY_TEMPLATE_VARIABLES = "template_variables";
private List<NotebookTemplateVariable> templateVariables = null;

public static final String JSON_PROPERTY_TIME = "time";
private NotebookGlobalTime time;

Expand Down Expand Up @@ -156,6 +160,41 @@ public void setStatus(NotebookStatus status) {
this.status = status;
}

public NotebookCreateDataAttributes templateVariables(
List<NotebookTemplateVariable> templateVariables) {
this.templateVariables = templateVariables;
for (NotebookTemplateVariable item : templateVariables) {
this.unparsed |= item.unparsed;
}
return this;
}

public NotebookCreateDataAttributes addTemplateVariablesItem(
NotebookTemplateVariable templateVariablesItem) {
if (this.templateVariables == null) {
this.templateVariables = new ArrayList<>();
}
this.templateVariables.add(templateVariablesItem);
this.unparsed |= templateVariablesItem.unparsed;
return this;
}

/**
* List of template variables for this notebook.
*
* @return templateVariables
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TEMPLATE_VARIABLES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<NotebookTemplateVariable> getTemplateVariables() {
return templateVariables;
}

public void setTemplateVariables(List<NotebookTemplateVariable> templateVariables) {
this.templateVariables = templateVariables;
}

public NotebookCreateDataAttributes time(NotebookGlobalTime time) {
this.time = time;
this.unparsed |= time.unparsed;
Expand Down Expand Up @@ -237,14 +276,16 @@ public boolean equals(Object o) {
&& Objects.equals(this.metadata, notebookCreateDataAttributes.metadata)
&& Objects.equals(this.name, notebookCreateDataAttributes.name)
&& Objects.equals(this.status, notebookCreateDataAttributes.status)
&& Objects.equals(this.templateVariables, notebookCreateDataAttributes.templateVariables)
&& Objects.equals(this.time, notebookCreateDataAttributes.time)
&& Objects.equals(
this.additionalProperties, notebookCreateDataAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(cells, metadata, name, status, time, additionalProperties);
return Objects.hash(
cells, metadata, name, status, templateVariables, time, additionalProperties);
}

@Override
Expand All @@ -255,6 +296,7 @@ public String toString() {
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" templateVariables: ").append(toIndentedString(templateVariables)).append("\n");
sb.append(" time: ").append(toIndentedString(time)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Loading
Loading