2022-11-15 06:39:32 +02:00
|
|
|
//
|
|
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
|
|
//
|
2024-05-15 23:52:52 +02:00
|
|
|
// @dart=2.18
|
2022-11-15 06:39:32 +02:00
|
|
|
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
|
|
// ignore_for_file: constant_identifier_names
|
|
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
|
|
|
|
part of openapi.api;
|
|
|
|
|
|
|
|
|
|
|
|
class SystemConfigApi {
|
|
|
|
SystemConfigApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
|
|
|
|
|
|
final ApiClient apiClient;
|
|
|
|
|
2023-04-18 18:26:04 +02:00
|
|
|
/// Performs an HTTP 'GET /system-config' operation and returns the [Response].
|
2022-11-15 06:39:32 +02:00
|
|
|
Future<Response> getConfigWithHttpInfo() async {
|
|
|
|
// ignore: prefer_const_declarations
|
|
|
|
final path = r'/system-config';
|
|
|
|
|
|
|
|
// ignore: prefer_final_locals
|
|
|
|
Object? postBody;
|
|
|
|
|
|
|
|
final queryParams = <QueryParam>[];
|
|
|
|
final headerParams = <String, String>{};
|
|
|
|
final formParams = <String, String>{};
|
|
|
|
|
|
|
|
const contentTypes = <String>[];
|
|
|
|
|
|
|
|
|
|
|
|
return apiClient.invokeAPI(
|
|
|
|
path,
|
|
|
|
'GET',
|
|
|
|
queryParams,
|
|
|
|
postBody,
|
|
|
|
headerParams,
|
|
|
|
formParams,
|
|
|
|
contentTypes.isEmpty ? null : contentTypes.first,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-12-09 22:51:42 +02:00
|
|
|
Future<SystemConfigDto?> getConfig() async {
|
2022-11-15 06:39:32 +02:00
|
|
|
final response = await getConfigWithHttpInfo();
|
|
|
|
if (response.statusCode >= HttpStatus.badRequest) {
|
|
|
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
|
|
}
|
|
|
|
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
|
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
|
|
// FormatException when trying to decode an empty string.
|
|
|
|
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
2022-12-09 22:51:42 +02:00
|
|
|
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigDto',) as SystemConfigDto;
|
|
|
|
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2023-04-18 18:26:04 +02:00
|
|
|
/// Performs an HTTP 'GET /system-config/defaults' operation and returns the [Response].
|
2023-11-04 03:33:15 +02:00
|
|
|
Future<Response> getConfigDefaultsWithHttpInfo() async {
|
2022-12-09 22:51:42 +02:00
|
|
|
// ignore: prefer_const_declarations
|
|
|
|
final path = r'/system-config/defaults';
|
|
|
|
|
|
|
|
// ignore: prefer_final_locals
|
|
|
|
Object? postBody;
|
|
|
|
|
|
|
|
final queryParams = <QueryParam>[];
|
|
|
|
final headerParams = <String, String>{};
|
|
|
|
final formParams = <String, String>{};
|
|
|
|
|
|
|
|
const contentTypes = <String>[];
|
|
|
|
|
|
|
|
|
|
|
|
return apiClient.invokeAPI(
|
|
|
|
path,
|
|
|
|
'GET',
|
|
|
|
queryParams,
|
|
|
|
postBody,
|
|
|
|
headerParams,
|
|
|
|
formParams,
|
|
|
|
contentTypes.isEmpty ? null : contentTypes.first,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-11-04 03:33:15 +02:00
|
|
|
Future<SystemConfigDto?> getConfigDefaults() async {
|
|
|
|
final response = await getConfigDefaultsWithHttpInfo();
|
2022-12-09 22:51:42 +02:00
|
|
|
if (response.statusCode >= HttpStatus.badRequest) {
|
|
|
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
|
|
}
|
|
|
|
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
|
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
|
|
// FormatException when trying to decode an empty string.
|
|
|
|
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
|
|
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigDto',) as SystemConfigDto;
|
2022-11-15 06:39:32 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2023-04-18 18:26:04 +02:00
|
|
|
/// Performs an HTTP 'GET /system-config/storage-template-options' operation and returns the [Response].
|
2022-12-16 22:26:12 +02:00
|
|
|
Future<Response> getStorageTemplateOptionsWithHttpInfo() async {
|
|
|
|
// ignore: prefer_const_declarations
|
|
|
|
final path = r'/system-config/storage-template-options';
|
|
|
|
|
|
|
|
// ignore: prefer_final_locals
|
|
|
|
Object? postBody;
|
|
|
|
|
|
|
|
final queryParams = <QueryParam>[];
|
|
|
|
final headerParams = <String, String>{};
|
|
|
|
final formParams = <String, String>{};
|
|
|
|
|
|
|
|
const contentTypes = <String>[];
|
|
|
|
|
|
|
|
|
|
|
|
return apiClient.invokeAPI(
|
|
|
|
path,
|
|
|
|
'GET',
|
|
|
|
queryParams,
|
|
|
|
postBody,
|
|
|
|
headerParams,
|
|
|
|
formParams,
|
|
|
|
contentTypes.isEmpty ? null : contentTypes.first,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Future<SystemConfigTemplateStorageOptionDto?> getStorageTemplateOptions() async {
|
|
|
|
final response = await getStorageTemplateOptionsWithHttpInfo();
|
|
|
|
if (response.statusCode >= HttpStatus.badRequest) {
|
|
|
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
|
|
}
|
|
|
|
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
|
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
|
|
// FormatException when trying to decode an empty string.
|
|
|
|
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
|
|
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigTemplateStorageOptionDto',) as SystemConfigTemplateStorageOptionDto;
|
|
|
|
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2023-04-18 18:26:04 +02:00
|
|
|
/// Performs an HTTP 'PUT /system-config' operation and returns the [Response].
|
2022-11-15 06:39:32 +02:00
|
|
|
/// Parameters:
|
|
|
|
///
|
2022-12-09 22:51:42 +02:00
|
|
|
/// * [SystemConfigDto] systemConfigDto (required):
|
|
|
|
Future<Response> updateConfigWithHttpInfo(SystemConfigDto systemConfigDto,) async {
|
2022-11-15 06:39:32 +02:00
|
|
|
// ignore: prefer_const_declarations
|
|
|
|
final path = r'/system-config';
|
|
|
|
|
|
|
|
// ignore: prefer_final_locals
|
2022-12-09 22:51:42 +02:00
|
|
|
Object? postBody = systemConfigDto;
|
2022-11-15 06:39:32 +02:00
|
|
|
|
|
|
|
final queryParams = <QueryParam>[];
|
|
|
|
final headerParams = <String, String>{};
|
|
|
|
final formParams = <String, String>{};
|
|
|
|
|
|
|
|
const contentTypes = <String>['application/json'];
|
|
|
|
|
|
|
|
|
|
|
|
return apiClient.invokeAPI(
|
|
|
|
path,
|
|
|
|
'PUT',
|
|
|
|
queryParams,
|
|
|
|
postBody,
|
|
|
|
headerParams,
|
|
|
|
formParams,
|
|
|
|
contentTypes.isEmpty ? null : contentTypes.first,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Parameters:
|
|
|
|
///
|
2022-12-09 22:51:42 +02:00
|
|
|
/// * [SystemConfigDto] systemConfigDto (required):
|
|
|
|
Future<SystemConfigDto?> updateConfig(SystemConfigDto systemConfigDto,) async {
|
|
|
|
final response = await updateConfigWithHttpInfo(systemConfigDto,);
|
2022-11-15 06:39:32 +02:00
|
|
|
if (response.statusCode >= HttpStatus.badRequest) {
|
|
|
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
|
|
}
|
|
|
|
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
|
|
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
|
|
// FormatException when trying to decode an empty string.
|
|
|
|
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
2022-12-09 22:51:42 +02:00
|
|
|
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigDto',) as SystemConfigDto;
|
2022-11-15 06:39:32 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|