deleteStorageV1beta1NamespacedCSIStorageCapacity method
Delete a CSIStorageCapacity.
name
Name of the CSIStorageCapacity.
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>
deleteStorageV1beta1NamespacedCSIStorageCapacity({
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/storage.k8s.io/v1beta1/namespaces/$namespace/csistoragecapacities/$name$query');
return apimachinery_pkg_apis_meta_v1.Status.fromJson(result);
}