deleteCoreV1NamespacedPodTemplate method

Future<PodTemplate> deleteCoreV1NamespacedPodTemplate({
  1. required String name,
  2. required String namespace,
  3. bool? pretty,
})

Delete a PodTemplate.

name Name of the PodTemplate.

namespace Object name and auth scope, such as for teams and projects.

pretty If true, then the output is pretty printed.

Implementation

Future<api_core_v1.PodTemplate> deleteCoreV1NamespacedPodTemplate({
  required String name,
  required String namespace,
  bool? pretty,
}) async {
  final queryStrings = <String, Object>{};
  if (pretty != null) {
    queryStrings['pretty'] = pretty;
  }

  final query =
      queryStrings.isEmpty ? '' : '?${_joinQueryStrings(queryStrings)}';

  final result = await _deleteJsonMap(
      '/api/v1/namespaces/$namespace/podtemplates/$name$query');
  return api_core_v1.PodTemplate.fromJson(result);
}