readAppsV1NamespacedStatefulSetScale method
Read scale of the specified StatefulSet.
name
Name of the Scale.
namespace
Object name and auth scope, such as for teams and projects.
pretty
If true, then the output is pretty printed.
Implementation
Future<api_autoscaling_v1.Scale> readAppsV1NamespacedStatefulSetScale({
required String name,
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/apps/v1/namespaces/$namespace/statefulsets/$name/scale$query');
return api_autoscaling_v1.Scale.fromJson(result);
}