resetStorageWithHttpInfo method
Future<Response>
resetStorageWithHttpInfo(
- String id,
- ListOfIdsDto listOfIdsDto, {
- int? q,
- int? n,
Reset storage for group
Reset storage
Note: This method returns the HTTP Response
.
Parameters:
-
String id (required): The id of the group
-
ListOfIdsDto listOfIdsDto (required):
-
int q: The number of shards for patient and healthdata dbs : 3-8 is a recommended range of value
-
int n: The number of replications for dbs : 3 is a recommended value
Implementation
Future<Response> resetStorageWithHttpInfo(String id, ListOfIdsDto listOfIdsDto, { int? q, int? n, }) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/group/{id}/reset/storage'.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = listOfIdsDto;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (q != null) {
queryParams.addAll(_queryParams('', 'q', q));
}
if (n != null) {
queryParams.addAll(_queryParams('', 'n', n));
}
const authNames = <String>[r'basicSchema'];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
authNames,
);
}