patchStorageV1CSINode method
Partially update the specified CSINode.
name
Name of the CSINode.
pretty
If true, then the output is pretty printed.
Implementation
Future<api_storage_v1.CSINode> patchStorageV1CSINode({
required api_storage_v1.CSINode body,
required String name,
bool? pretty,
PatchType patchType = PatchType.mergePatch,
}) async {
final queryStrings = <String, Object>{};
if (pretty != null) {
queryStrings['pretty'] = pretty;
}
final query =
queryStrings.isEmpty ? '' : '?${_joinQueryStrings(queryStrings)}';
final jsonBody = jsonEncode(body.toJson());
final result = await _patchJsonMap(
'/apis/storage.k8s.io/v1/csinodes/$name$query', jsonBody, patchType);
return api_storage_v1.CSINode.fromJson(result);
}