import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
createAnnotationSetting | POST /api/v1alpha1/annotationsettings | |
deleteAnnotationSetting | DELETE /api/v1alpha1/annotationsettings/{name} | |
getAnnotationSetting | GET /api/v1alpha1/annotationsettings/{name} | |
listAnnotationSetting | GET /api/v1alpha1/annotationsettings | |
patchAnnotationSetting | PATCH /api/v1alpha1/annotationsettings/{name} | |
updateAnnotationSetting | PUT /api/v1alpha1/annotationsettings/{name} |
AnnotationSetting createAnnotationSetting(annotationSetting)
Create AnnotationSetting
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().getAnnotationSettingV1alpha1Api();
final AnnotationSetting annotationSetting = ; // AnnotationSetting | Fresh annotationsetting
try {
final response = api.createAnnotationSetting(annotationSetting);
print(response);
} catch on DioException (e) {
print('Exception when calling AnnotationSettingV1alpha1Api->createAnnotationSetting: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
annotationSetting | AnnotationSetting | Fresh annotationsetting | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteAnnotationSetting(name)
Delete AnnotationSetting
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().getAnnotationSettingV1alpha1Api();
final String name = name_example; // String | Name of annotationsetting
try {
api.deleteAnnotationSetting(name);
} catch on DioException (e) {
print('Exception when calling AnnotationSettingV1alpha1Api->deleteAnnotationSetting: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of annotationsetting |
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]
AnnotationSetting getAnnotationSetting(name)
Get AnnotationSetting
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().getAnnotationSettingV1alpha1Api();
final String name = name_example; // String | Name of annotationsetting
try {
final response = api.getAnnotationSetting(name);
print(response);
} catch on DioException (e) {
print('Exception when calling AnnotationSettingV1alpha1Api->getAnnotationSetting: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of annotationsetting |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnnotationSettingList listAnnotationSetting(page, size, labelSelector, fieldSelector, sort)
List AnnotationSetting
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().getAnnotationSettingV1alpha1Api();
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.listAnnotationSetting(page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling AnnotationSettingV1alpha1Api->listAnnotationSetting: $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]
AnnotationSetting patchAnnotationSetting(name, jsonPatchInner)
Patch AnnotationSetting
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().getAnnotationSettingV1alpha1Api();
final String name = name_example; // String | Name of annotationsetting
final BuiltSet<JsonPatchInner> jsonPatchInner = ; // BuiltSet<JsonPatchInner> |
try {
final response = api.patchAnnotationSetting(name, jsonPatchInner);
print(response);
} catch on DioException (e) {
print('Exception when calling AnnotationSettingV1alpha1Api->patchAnnotationSetting: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of annotationsetting | |
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]
AnnotationSetting updateAnnotationSetting(name, annotationSetting)
Update AnnotationSetting
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().getAnnotationSettingV1alpha1Api();
final String name = name_example; // String | Name of annotationsetting
final AnnotationSetting annotationSetting = ; // AnnotationSetting | Updated annotationsetting
try {
final response = api.updateAnnotationSetting(name, annotationSetting);
print(response);
} catch on DioException (e) {
print('Exception when calling AnnotationSettingV1alpha1Api->updateAnnotationSetting: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of annotationsetting | |
annotationSetting | AnnotationSetting | Updated annotationsetting | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]