import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
createConfigMap | POST /api/v1alpha1/configmaps | |
deleteConfigMap | DELETE /api/v1alpha1/configmaps/{name} | |
getConfigMap | GET /api/v1alpha1/configmaps/{name} | |
listConfigMap | GET /api/v1alpha1/configmaps | |
patchConfigMap | PATCH /api/v1alpha1/configmaps/{name} | |
updateConfigMap | PUT /api/v1alpha1/configmaps/{name} |
ConfigMap createConfigMap(configMap)
Create ConfigMap
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getConfigMapV1alpha1Api();
final ConfigMap configMap = ; // ConfigMap | Fresh configmap
try {
final response = api.createConfigMap(configMap);
print(response);
} catch on DioException (e) {
print('Exception when calling ConfigMapV1alpha1Api->createConfigMap: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configMap | ConfigMap | Fresh configmap | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteConfigMap(name)
Delete ConfigMap
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getConfigMapV1alpha1Api();
final String name = name_example; // String | Name of configmap
try {
api.deleteConfigMap(name);
} catch on DioException (e) {
print('Exception when calling ConfigMapV1alpha1Api->deleteConfigMap: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of configmap |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConfigMap getConfigMap(name)
Get ConfigMap
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getConfigMapV1alpha1Api();
final String name = name_example; // String | Name of configmap
try {
final response = api.getConfigMap(name);
print(response);
} catch on DioException (e) {
print('Exception when calling ConfigMapV1alpha1Api->getConfigMap: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of configmap |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConfigMapList listConfigMap(page, size, labelSelector, fieldSelector, sort)
List ConfigMap
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getConfigMapV1alpha1Api();
final int page = 56; // int | Page number. Default is 0.
final int size = 56; // int | Size number. Default is 0.
final BuiltList<String> labelSelector = ; // BuiltList<String> | Label selector. e.g.: hidden!=true
final BuiltList<String> fieldSelector = ; // BuiltList<String> | Field selector. e.g.: metadata.name==halo
final BuiltList<String> sort = ; // BuiltList<String> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
try {
final response = api.listConfigMap(page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling ConfigMapV1alpha1Api->listConfigMap: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
page | int | Page number. Default is 0. | [optional] |
size | int | Size number. Default is 0. | [optional] |
labelSelector | BuiltList<String> | Label selector. e.g.: hidden!=true | [optional] |
fieldSelector | BuiltList<String> | Field selector. e.g.: metadata.name==halo | [optional] |
sort | BuiltList<String> | Sorting criteria in the format: property,(asc | desc). Default sort order is ascending. Multiple sort criteria are supported. |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConfigMap patchConfigMap(name, jsonPatchInner)
Patch ConfigMap
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getConfigMapV1alpha1Api();
final String name = name_example; // String | Name of configmap
final BuiltSet<JsonPatchInner> jsonPatchInner = ; // BuiltSet<JsonPatchInner> |
try {
final response = api.patchConfigMap(name, jsonPatchInner);
print(response);
} catch on DioException (e) {
print('Exception when calling ConfigMapV1alpha1Api->patchConfigMap: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of configmap | |
jsonPatchInner | BuiltSet<JsonPatchInner> | [optional] |
- Content-Type: application/json-patch+json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConfigMap updateConfigMap(name, configMap)
Update ConfigMap
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getConfigMapV1alpha1Api();
final String name = name_example; // String | Name of configmap
final ConfigMap configMap = ; // ConfigMap | Updated configmap
try {
final response = api.updateConfigMap(name, configMap);
print(response);
} catch on DioException (e) {
print('Exception when calling ConfigMapV1alpha1Api->updateConfigMap: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of configmap | |
configMap | ConfigMap | Updated configmap | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]