listFlowcontrolApiserverV1beta1FlowSchema method

Future<FlowSchemaList> listFlowcontrolApiserverV1beta1FlowSchema({
  1. bool? pretty,
})

List or watch objects of kind FlowSchema.

pretty If true, then the output is pretty printed.

Implementation

Future<api_flowcontrol_v1beta3.FlowSchemaList>
    listFlowcontrolApiserverV1beta1FlowSchema({
  bool? pretty,
}) async {
  final queryStrings = <String, Object>{};
  if (pretty != null) {
    queryStrings['pretty'] = pretty;
  }

  final query =
      queryStrings.isEmpty ? '' : '?${_joinQueryStrings(queryStrings)}';

  final result = await _getJsonMap(
      '/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas$query');
  return api_flowcontrol_v1beta3.FlowSchemaList.fromJson(result);
}