public interface VariablesApi
Modifier and Type | Method and Description |
---|---|
Label |
addLabel(Label label,
Variable variable)
Add a label to a variable.
|
Label |
addLabel(String labelID,
String variableID)
Add a label to a variable.
|
Variable |
cloneVariable(String clonedName,
String variableID)
Clone a variable.
|
Variable |
cloneVariable(String clonedName,
Variable variable)
Clone a variable.
|
Variable |
createVariable(Variable variable)
Create a variable.
|
void |
deleteLabel(Label label,
Variable variable)
Delete a label from a variable.
|
void |
deleteLabel(String labelID,
String variableID)
Delete a label from a variable.
|
void |
deleteVariable(String variableID)
Delete a variable.
|
void |
deleteVariable(Variable variable)
Delete a variable.
|
Variable |
findVariableByID(String variableID)
Get a variable.
|
List<Variable> |
findVariables(Organization organization)
Get all variables.
|
List<Variable> |
findVariables(String orgID)
Get all variables.
|
List<Label> |
getLabels(String variableID)
List all labels for a variable.
|
List<Label> |
getLabels(Variable variable)
List all labels for a variable.
|
Variable |
updateVariable(Variable variable)
Update a variable.
|
@Nonnull Variable createVariable(@Nonnull Variable variable)
variable
- variable to create@Nonnull Variable updateVariable(@Nonnull Variable variable)
variable
- variable update to applyvoid deleteVariable(@Nonnull Variable variable)
variable
- variable to deletevoid deleteVariable(@Nonnull String variableID)
variableID
- id of the variable@Nonnull Variable cloneVariable(@Nonnull String clonedName, @Nonnull String variableID)
clonedName
- name of cloned variablevariableID
- ID of variable to clone@Nonnull Variable cloneVariable(@Nonnull String clonedName, @Nonnull Variable variable)
clonedName
- name of cloned variablevariable
- variable to clone@Nonnull Variable findVariableByID(@Nonnull String variableID)
variableID
- ID of the variable (required)@Nonnull List<Variable> findVariables(@Nonnull Organization organization)
organization
- specifies the organization of the resource@Nonnull List<Variable> findVariables(@Nonnull String orgID)
orgID
- specifies the organization id of the resource@Nonnull List<Label> getLabels(@Nonnull Variable variable)
variable
- the variable@Nonnull List<Label> getLabels(@Nonnull String variableID)
variableID
- ID of the variable@Nonnull Label addLabel(@Nonnull Label label, @Nonnull Variable variable)
label
- label to addvariable
- the variable@Nonnull Label addLabel(@Nonnull String labelID, @Nonnull String variableID)
variableID
- ID of the variablelabelID
- the ID of label to addvoid deleteLabel(@Nonnull Label label, @Nonnull Variable variable)
label
- the label to deletevariable
- the variableCopyright © 2018–2020 InfluxData, Inc.. All rights reserved.