patchFlowcontrolApiserverV1beta2FlowSchema method
Future<FlowSchema>
patchFlowcontrolApiserverV1beta2FlowSchema({
- required FlowSchema body,
- required String name,
- bool? pretty,
- PatchType patchType = PatchType.mergePatch,
Partially update the specified FlowSchema.
name
Name of the FlowSchema.
pretty
If true, then the output is pretty printed.
Implementation
Future<api_flowcontrol_v1beta2.FlowSchema>
patchFlowcontrolApiserverV1beta2FlowSchema({
required api_flowcontrol_v1beta2.FlowSchema 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/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/$name$query',
jsonBody,
patchType);
return api_flowcontrol_v1beta2.FlowSchema.fromJson(result);
}