patchCoreV1NamespacedConfigMap method
Partially update the specified ConfigMap.
name
Name of the ConfigMap.
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.ConfigMap> patchCoreV1NamespacedConfigMap({
required api_core_v1.ConfigMap body,
required String name,
required String namespace,
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(
'/api/v1/namespaces/$namespace/configmaps/$name$query',
jsonBody,
patchType);
return api_core_v1.ConfigMap.fromJson(result);
}