@ThreadSafe public interface TemplatesApi
Modifier and Type | Method and Description |
---|---|
LabelResponse |
addLabel(Label label,
Document template)
Add a label to a template.
|
LabelResponse |
addLabel(String labelID,
String templateID)
Add a label to a template.
|
Document |
cloneTemplate(String clonedName,
Document template)
Clone a template.
|
Document |
cloneTemplate(String clonedName,
String templateID)
Clone a template.
|
Document |
createTemplate(DocumentCreate templateCreate)
Create a template.
|
void |
deleteLabel(Label label,
Document template)
Delete a label from a template.
|
void |
deleteLabel(String labelID,
String templateID)
Delete a label from a template.
|
void |
deleteTemplate(Document template)
Delete a template.
|
void |
deleteTemplate(String templateID)
Delete a template.
|
Document |
findTemplateByID(String templateID)
Retrieve a template.
|
List<DocumentListEntry> |
findTemplates(Organization organization)
List of template documents.
|
List<DocumentListEntry> |
findTemplates(String orgName)
List of template documents.
|
List<Label> |
getLabels(Document template)
List all labels for a template.
|
List<Label> |
getLabels(String templateID)
List all labels for a template.
|
Document |
updateTemplate(Document template)
Update a template.
|
Document |
updateTemplate(String templateID,
DocumentUpdate template)
Update a template.
|
@Nonnull Document createTemplate(@Nonnull DocumentCreate templateCreate)
templateCreate
- template that will be created@Nonnull Document updateTemplate(@Nonnull Document template)
template
- template that will be updated@Nonnull Document updateTemplate(@Nonnull String templateID, @Nonnull DocumentUpdate template)
templateID
- ID of templatetemplate
- template that will be updatedvoid deleteTemplate(@Nonnull Document template)
template
- template to deletevoid deleteTemplate(@Nonnull String templateID)
templateID
- ID of template to delete@Nonnull List<Label> getLabels(@Nonnull Document template)
template
- the template@Nonnull List<Label> getLabels(@Nonnull String templateID)
templateID
- ID of template@Nonnull LabelResponse addLabel(@Nonnull Label label, @Nonnull Document template)
label
- label to addtemplate
- the template@Nonnull LabelResponse addLabel(@Nonnull String labelID, @Nonnull String templateID)
templateID
- ID of templatelabelID
- the ID of label to addvoid deleteLabel(@Nonnull Label label, @Nonnull Document template)
label
- the labeltemplate
- the templatevoid deleteLabel(@Nonnull String labelID, @Nonnull String templateID)
templateID
- ID of templatelabelID
- the label ID@Nonnull Document cloneTemplate(@Nonnull String clonedName, @Nonnull String templateID)
clonedName
- name of cloned templatetemplateID
- ID of template to clone@Nonnull Document cloneTemplate(@Nonnull String clonedName, @Nonnull Document template)
clonedName
- name of cloned templatetemplate
- template to clone@Nonnull Document findTemplateByID(@Nonnull String templateID)
templateID
- ID of template@Nonnull List<DocumentListEntry> findTemplates(@Nonnull Organization organization)
organization
- specifies the organization of the template (required)@Nonnull List<DocumentListEntry> findTemplates(@Nonnull String orgName)
orgName
- specifies the name of the organization of the template (required)Copyright © 2018–2021 InfluxData, Inc.. All rights reserved.