readStorageV1VolumeAttachment method
Read the specified VolumeAttachment.
name
Name of the VolumeAttachment.
pretty
If true, then the output is pretty printed.
Implementation
Future<api_storage_v1.VolumeAttachment> readStorageV1VolumeAttachment({
required String name,
bool? pretty,
}) async {
final queryStrings = <String, Object>{};
if (pretty != null) {
queryStrings['pretty'] = pretty;
}
final query =
queryStrings.isEmpty ? '' : '?${_joinQueryStrings(queryStrings)}';
final result = await _getJsonMap(
'/apis/storage.k8s.io/v1/volumeattachments/$name$query');
return api_storage_v1.VolumeAttachment.fromJson(result);
}