import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
createThumbnail | POST /apis/storage.halo.run/v1alpha1/thumbnails | |
deleteThumbnail | DELETE /apis/storage.halo.run/v1alpha1/thumbnails/{name} | |
getThumbnail | GET /apis/storage.halo.run/v1alpha1/thumbnails/{name} | |
listThumbnail | GET /apis/storage.halo.run/v1alpha1/thumbnails | |
patchThumbnail | PATCH /apis/storage.halo.run/v1alpha1/thumbnails/{name} | |
updateThumbnail | PUT /apis/storage.halo.run/v1alpha1/thumbnails/{name} |
Thumbnail createThumbnail(thumbnail)
Create Thumbnail
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().getThumbnailV1alpha1Api();
final Thumbnail thumbnail = ; // Thumbnail | Fresh thumbnail
try {
final response = api.createThumbnail(thumbnail);
print(response);
} catch on DioException (e) {
print('Exception when calling ThumbnailV1alpha1Api->createThumbnail: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
thumbnail | Thumbnail | Fresh thumbnail | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteThumbnail(name)
Delete Thumbnail
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().getThumbnailV1alpha1Api();
final String name = name_example; // String | Name of thumbnail
try {
api.deleteThumbnail(name);
} catch on DioException (e) {
print('Exception when calling ThumbnailV1alpha1Api->deleteThumbnail: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of thumbnail |
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]
Thumbnail getThumbnail(name)
Get Thumbnail
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().getThumbnailV1alpha1Api();
final String name = name_example; // String | Name of thumbnail
try {
final response = api.getThumbnail(name);
print(response);
} catch on DioException (e) {
print('Exception when calling ThumbnailV1alpha1Api->getThumbnail: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of thumbnail |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThumbnailList listThumbnail(page, size, labelSelector, fieldSelector, sort)
List Thumbnail
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().getThumbnailV1alpha1Api();
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.listThumbnail(page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling ThumbnailV1alpha1Api->listThumbnail: $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]
Thumbnail patchThumbnail(name, jsonPatchInner)
Patch Thumbnail
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().getThumbnailV1alpha1Api();
final String name = name_example; // String | Name of thumbnail
final BuiltSet<JsonPatchInner> jsonPatchInner = ; // BuiltSet<JsonPatchInner> |
try {
final response = api.patchThumbnail(name, jsonPatchInner);
print(response);
} catch on DioException (e) {
print('Exception when calling ThumbnailV1alpha1Api->patchThumbnail: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of thumbnail | |
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]
Thumbnail updateThumbnail(name, thumbnail)
Update Thumbnail
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().getThumbnailV1alpha1Api();
final String name = name_example; // String | Name of thumbnail
final Thumbnail thumbnail = ; // Thumbnail | Updated thumbnail
try {
final response = api.updateThumbnail(name, thumbnail);
print(response);
} catch on DioException (e) {
print('Exception when calling ThumbnailV1alpha1Api->updateThumbnail: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of thumbnail | |
thumbnail | Thumbnail | Updated thumbnail | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]