deleteVariablesIDLabelsIDWithHttpInfo method

Future<Response> deleteVariablesIDLabelsIDWithHttpInfo(
  1. String variableID,
  2. String labelID, {
  3. String? zapTraceSpan,
})

Delete a label from a variable

Note: This method returns the HTTP Response.

Parameters:

  • String variableID (required): The variable ID.

  • String labelID (required): The label ID to delete.

  • String zapTraceSpan: OpenTracing span context

Implementation

Future<Response> deleteVariablesIDLabelsIDWithHttpInfo(
  String variableID,
  String labelID, {
  String? zapTraceSpan,
}) async {
  final path = r'/variables/{variableID}/labels/{labelID}'
      .replaceAll('{variableID}', variableID)
      .replaceAll('{labelID}', labelID);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (zapTraceSpan != null) {
    headerParams[r'Zap-Trace-Span'] = parameterToString(zapTraceSpan);
  }

  const authNames = <String>[
    'BasicAuthentication',
    'QuerystringAuthentication',
    'TokenAuthentication'
  ];
  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes[0],
    authNames,
  );
}