listIstioV1beta1NamespacedVirtualService method
List or watch objects of kind istio_v1beta1.VirtualService.
namespace
Object name and auth scope, such as for teams and projects.
pretty
If true, then the output is pretty printed.
Implementation
Future<istio_v1beta1.VirtualServiceList>
listIstioV1beta1NamespacedVirtualService({
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 _getJsonMap(
'/apis/networking.istio.io/v1beta1/namespaces/$namespace/virtualservices$query');
return istio_v1beta1.VirtualServiceList.fromJson(result);
}