public interface VariablesService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<Void> |
deleteVariablesID(String variableID,
String zapTraceSpan)
delete a variable
|
retrofit2.Call<Void> |
deleteVariablesIDLabelsID(String variableID,
String labelID,
String zapTraceSpan)
delete a label from a variable
|
retrofit2.Call<Variables> |
getVariables(String zapTraceSpan,
String org,
String orgID)
get all variables
|
retrofit2.Call<Variable> |
getVariablesID(String variableID,
String zapTraceSpan)
get a variable
|
retrofit2.Call<LabelsResponse> |
getVariablesIDLabels(String variableID,
String zapTraceSpan)
list all labels for a variable
|
retrofit2.Call<Variable> |
patchVariablesID(String variableID,
Variable variable,
String zapTraceSpan)
update a variable
|
retrofit2.Call<Variable> |
postVariables(Variable variable,
String zapTraceSpan)
create a variable
|
retrofit2.Call<LabelResponse> |
postVariablesIDLabels(String variableID,
LabelMapping labelMapping,
String zapTraceSpan)
add a label to a variable
|
retrofit2.Call<Variable> |
putVariablesID(String variableID,
Variable variable,
String zapTraceSpan)
replace a variable
|
@DELETE(value="api/v2/variables/{variableID}") retrofit2.Call<Void> deleteVariablesID(@Path(value="variableID") String variableID, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variableID
- id of the variable (required)zapTraceSpan
- OpenTracing span context (optional)@DELETE(value="api/v2/variables/{variableID}/labels/{labelID}") retrofit2.Call<Void> deleteVariablesIDLabelsID(@Path(value="variableID") String variableID, @Path(value="labelID") String labelID, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variableID
- ID of the variable (required)labelID
- the label id to delete (required)zapTraceSpan
- OpenTracing span context (optional)@GET(value="api/v2/variables") retrofit2.Call<Variables> getVariables(@Header(value="Zap-Trace-Span") String zapTraceSpan, @Query(value="org") String org, @Query(value="orgID") String orgID)
zapTraceSpan
- OpenTracing span context (optional)org
- specifies the organization name of the resource (optional)orgID
- specifies the organization id of the resource (optional)@GET(value="api/v2/variables/{variableID}") retrofit2.Call<Variable> getVariablesID(@Path(value="variableID") String variableID, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variableID
- ID of the variable (required)zapTraceSpan
- OpenTracing span context (optional)@GET(value="api/v2/variables/{variableID}/labels") retrofit2.Call<LabelsResponse> getVariablesIDLabels(@Path(value="variableID") String variableID, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variableID
- ID of the variable (required)zapTraceSpan
- OpenTracing span context (optional)@Headers(value="Content-Type:application/json") @PATCH(value="api/v2/variables/{variableID}") retrofit2.Call<Variable> patchVariablesID(@Path(value="variableID") String variableID, @Body Variable variable, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variableID
- id of the variable (required)variable
- variable update to apply (required)zapTraceSpan
- OpenTracing span context (optional)@Headers(value="Content-Type:application/json") @POST(value="api/v2/variables") retrofit2.Call<Variable> postVariables(@Body Variable variable, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variable
- variable to create (required)zapTraceSpan
- OpenTracing span context (optional)@Headers(value="Content-Type:application/json") @POST(value="api/v2/variables/{variableID}/labels") retrofit2.Call<LabelResponse> postVariablesIDLabels(@Path(value="variableID") String variableID, @Body LabelMapping labelMapping, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variableID
- ID of the variable (required)labelMapping
- label to add (required)zapTraceSpan
- OpenTracing span context (optional)@Headers(value="Content-Type:application/json") @PUT(value="api/v2/variables/{variableID}") retrofit2.Call<Variable> putVariablesID(@Path(value="variableID") String variableID, @Body Variable variable, @Header(value="Zap-Trace-Span") String zapTraceSpan)
variableID
- id of the variable (required)variable
- variable to replace (required)zapTraceSpan
- OpenTracing span context (optional)Copyright © 2018–2019 InfluxData, Inc.. All rights reserved.