deleteDiscoveryV1NamespacedEndpointSlice method

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

Delete an EndpointSlice.

name Name of the EndpointSlice.

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

pretty If true, then the output is pretty printed.

Implementation

Future<apimachinery_pkg_apis_meta_v1.Status>
    deleteDiscoveryV1NamespacedEndpointSlice({
  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(
      '/apis/discovery.k8s.io/v1/namespaces/$namespace/endpointslices/$name$query');
  return apimachinery_pkg_apis_meta_v1.Status.fromJson(result);
}