k8s 1.26.0 k8s: ^1.26.0 copied to clipboard
Kubernetes API client library for Dart
k8s #
Kubernetes API client library for Dart (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Dart package is automatically generated by the OpenAPI Generator project:
- API spec: https://raw.githubusercontent.com/kubernetes/kubernetes/v1.26.0/api/openapi-spec/swagger.json
- API version: 1.26.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
Requirements #
Dart 2.12 or later
Installation & Usage #
Package: #
Github: #
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
dependencies:
k8s:
git: https://github.com/fatihsever/k8s-dart.git
Local: #
To use the package in your local drive, add the following dependency to your pubspec.yaml
dependencies:
k8s:
path: /path/to/k8s
Tests #
TODO
Getting Started #
Please follow the installation procedure and then run the following:
import 'package:k8s/api.dart';
// TODO Configure API key authorization: BearerToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('BearerToken').apiKeyPrefix = 'Bearer';
final api_instance = AdmissionregistrationApi();
try {
final result = api_instance.getAdmissionregistrationAPIGroup();
print(result);
} catch (e) {
print('Exception when calling AdmissionregistrationApi->getAdmissionregistrationAPIGroup: $e\n');
}
Documentation for API Endpoints #
Documentation For Models #
Documentation For Authorization #
BearerToken #
- Type: API key
- API key parameter name: authorization
- Location: HTTP header
Author #
How was it generated? #
openapi-generator generate \
--input-spec=https://raw.githubusercontent.com/kubernetes/kubernetes/v1.26.0/api/openapi-spec/swagger.json \
--generator-name=dart \
--git-repo-id=k8s-dart \
--git-user-id=fatihsever \
--additional-properties=pubAuthor=fatihsever.com,pubAuthorEmail=hello@fatihsever.com,pubDescription="Kubernetes API client library for Dart",pubHomepage=https://github.com/fatihsever/k8s-dart,pubLibrary=k8s,pubName=k8s,pubVersion=1.26.0