import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
createNotification | POST /apis/notification.halo.run/v1alpha1/notifications | |
deleteNotification | DELETE /apis/notification.halo.run/v1alpha1/notifications/{name} | |
getNotification | GET /apis/notification.halo.run/v1alpha1/notifications/{name} | |
listNotification | GET /apis/notification.halo.run/v1alpha1/notifications | |
patchNotification | PATCH /apis/notification.halo.run/v1alpha1/notifications/{name} | |
updateNotification | PUT /apis/notification.halo.run/v1alpha1/notifications/{name} |
Notification createNotification(notification)
Create Notification
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().getNotificationV1alpha1Api();
final Notification notification = ; // Notification | Fresh notification
try {
final response = api.createNotification(notification);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1Api->createNotification: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
notification | Notification | Fresh notification | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteNotification(name)
Delete Notification
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().getNotificationV1alpha1Api();
final String name = name_example; // String | Name of notification
try {
api.deleteNotification(name);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1Api->deleteNotification: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of notification |
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]
Notification getNotification(name)
Get Notification
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().getNotificationV1alpha1Api();
final String name = name_example; // String | Name of notification
try {
final response = api.getNotification(name);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1Api->getNotification: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of notification |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NotificationList listNotification(page, size, labelSelector, fieldSelector, sort)
List Notification
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().getNotificationV1alpha1Api();
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.listNotification(page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1Api->listNotification: $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]
Notification patchNotification(name, jsonPatchInner)
Patch Notification
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().getNotificationV1alpha1Api();
final String name = name_example; // String | Name of notification
final BuiltSet<JsonPatchInner> jsonPatchInner = ; // BuiltSet<JsonPatchInner> |
try {
final response = api.patchNotification(name, jsonPatchInner);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1Api->patchNotification: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of notification | |
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]
Notification updateNotification(name, notification)
Update Notification
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().getNotificationV1alpha1Api();
final String name = name_example; // String | Name of notification
final Notification notification = ; // Notification | Updated notification
try {
final response = api.updateNotification(name, notification);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1Api->updateNotification: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of notification | |
notification | Notification | Updated notification | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]