import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
createRole | POST /api/v1alpha1/roles | |
deleteRole | DELETE /api/v1alpha1/roles/{name} | |
getRole | GET /api/v1alpha1/roles/{name} | |
listRole | GET /api/v1alpha1/roles | |
patchRole | PATCH /api/v1alpha1/roles/{name} | |
updateRole | PUT /api/v1alpha1/roles/{name} |
Role createRole(role)
Create Role
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().getRoleV1alpha1Api();
final Role role = ; // Role | Fresh role
try {
final response = api.createRole(role);
print(response);
} catch on DioException (e) {
print('Exception when calling RoleV1alpha1Api->createRole: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
role | Role | Fresh role | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRole(name)
Delete Role
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().getRoleV1alpha1Api();
final String name = name_example; // String | Name of role
try {
api.deleteRole(name);
} catch on DioException (e) {
print('Exception when calling RoleV1alpha1Api->deleteRole: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of role |
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]
Role getRole(name)
Get Role
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().getRoleV1alpha1Api();
final String name = name_example; // String | Name of role
try {
final response = api.getRole(name);
print(response);
} catch on DioException (e) {
print('Exception when calling RoleV1alpha1Api->getRole: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of role |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RoleList listRole(page, size, labelSelector, fieldSelector, sort)
List Role
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().getRoleV1alpha1Api();
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.listRole(page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling RoleV1alpha1Api->listRole: $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]
Role patchRole(name, jsonPatchInner)
Patch Role
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().getRoleV1alpha1Api();
final String name = name_example; // String | Name of role
final BuiltSet<JsonPatchInner> jsonPatchInner = ; // BuiltSet<JsonPatchInner> |
try {
final response = api.patchRole(name, jsonPatchInner);
print(response);
} catch on DioException (e) {
print('Exception when calling RoleV1alpha1Api->patchRole: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of role | |
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]
Role updateRole(name, role)
Update Role
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().getRoleV1alpha1Api();
final String name = name_example; // String | Name of role
final Role role = ; // Role | Updated role
try {
final response = api.updateRole(name, role);
print(response);
} catch on DioException (e) {
print('Exception when calling RoleV1alpha1Api->updateRole: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of role | |
role | Role | Updated role | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]