import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
deletePat | DELETE /apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name} | |
generatePat | POST /apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens | |
obtainPat | GET /apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name} | |
obtainPats | GET /apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens | |
restorePat | PUT /apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/restoration | |
revokePat | PUT /apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/revocation |
deletePat(name)
Delete a PAT
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().getPersonalAccessTokenV1alpha1UcApi();
final String name = name_example; // String |
try {
api.deletePat(name);
} catch on DioException (e) {
print('Exception when calling PersonalAccessTokenV1alpha1UcApi->deletePat: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String |
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]
PersonalAccessToken generatePat(personalAccessToken)
Generate a PAT.
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().getPersonalAccessTokenV1alpha1UcApi();
final PersonalAccessToken personalAccessToken = ; // PersonalAccessToken |
try {
final response = api.generatePat(personalAccessToken);
print(response);
} catch on DioException (e) {
print('Exception when calling PersonalAccessTokenV1alpha1UcApi->generatePat: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
personalAccessToken | PersonalAccessToken |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
obtainPat(name)
Obtain a PAT.
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().getPersonalAccessTokenV1alpha1UcApi();
final String name = name_example; // String |
try {
api.obtainPat(name);
} catch on DioException (e) {
print('Exception when calling PersonalAccessTokenV1alpha1UcApi->obtainPat: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String |
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]
BuiltList obtainPats()
Obtain PAT list.
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().getPersonalAccessTokenV1alpha1UcApi();
try {
final response = api.obtainPats();
print(response);
} catch on DioException (e) {
print('Exception when calling PersonalAccessTokenV1alpha1UcApi->obtainPats: $e\n');
}
This endpoint does not need any parameter.
BuiltList<PersonalAccessToken>
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restorePat(name)
Restore a PAT.
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().getPersonalAccessTokenV1alpha1UcApi();
final String name = name_example; // String |
try {
api.restorePat(name);
} catch on DioException (e) {
print('Exception when calling PersonalAccessTokenV1alpha1UcApi->restorePat: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String |
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]
revokePat(name)
Revoke a PAT
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().getPersonalAccessTokenV1alpha1UcApi();
final String name = name_example; // String |
try {
api.revokePat(name);
} catch on DioException (e) {
print('Exception when calling PersonalAccessTokenV1alpha1UcApi->revokePat: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String |
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]