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